Skip to content

Commit

Permalink
ci: Adapt to new go version
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Jan 7, 2025
1 parent c403d48 commit a3e9884
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Go test and lint

on:
push:
branches: [ main ]
branches: [ main, v2]
pull_request:
branches: [ main, v2 ]

Expand All @@ -21,29 +21,14 @@ jobs:

- name: Test
run: go test -v -race ./...

test-old:
name: Test with 1.17
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Go 1.17
uses: actions/setup-go@v3
with:
go-version: 1.17

- name: Test
run: go test -v -race ./...

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.22
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
go-version: 1.22
id: go

- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ issues:
- Using the variable on range scope `tt` in function literal
- GetJsonSHA256Fingerprints should be GetJSONSHA256Fingerprints
- ST1003 # CamelCase variables; see constants/cipher.go
- SA1019
- commentFormatting

linters:
enable-all: true
Expand Down

0 comments on commit a3e9884

Please sign in to comment.