Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Aug 11, 2024
1 parent dd617ee commit c4f7944
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,27 @@ on:
branches: [main]

jobs:
golangci:
name: golangci-lint
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m


build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.20"]
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
args: --timeout=3m
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true

- run: go test -race ./...
- run: go test -bench=. ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/ringsaturn/go-aqi

go 1.20
go 1.22
1 change: 0 additions & 1 deletion mep/mep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ func BenchmarkAlgoCalc(b *testing.B) {

var (
largeData [][]*goaqi.Var
lessData [][]*goaqi.Var
)

func init() {
Expand Down

0 comments on commit c4f7944

Please # to comment.