Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mscno committed Feb 7, 2025
1 parent e33e514 commit 653fd7a
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
go mod download
go test -race -coverprofile=coverage.txt -covermode=atomic
test-old:
name: Test / Go ${{ matrix.go }}
runs-on: ubuntu-latest
Expand All @@ -41,16 +42,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Init Hermit
run: ./bin/hermit env -r >> "$GITHUB_ENV"
- name: Install Go ${{ matrix.go }}
run: |
hermit install go@"${GO_VERSION}"
go version
env:
GO_VERSION: ${{ matrix.go }}
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go }}"
- name: Test
run: go test ./...
run: go test -race ./...

test-windows:
name: Test / Windows / Go ${{ matrix.go }}
Expand All @@ -63,12 +60,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: "${{ matrix.go }}"
- name: Test
run: go test ./...
run: go test -race ./...

# lint:
# name: Lint
Expand Down

0 comments on commit 653fd7a

Please sign in to comment.