Skip to content

Commit

Permalink
Add github action and golangci-lint (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 authored Jul 7, 2022
1 parent ec082b6 commit 7be5756
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.18"
check-latest: true
cache: true
- run: go test -race -failfast ./...
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.18"
check-latest: true
cache: true
- uses: golangci/golangci-lint-action@v3
with:
version: latest
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
run:
tests: false

output:
sort-results: true

0 comments on commit 7be5756

Please sign in to comment.