Skip to content

Commit

Permalink
fix go version in test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangmingLuo committed Aug 8, 2024
1 parent 2d87d22 commit 8906337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: stable
# for self-hosted, the cache path is shared across projects
# and it works well without the cache of github actions
# Enable it if we're going to use Github only
cache: false
cache: false # don't use cache for self-hosted runners

- name: Golangci Lint
# https://golangci-lint.run/
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build Test
run: go test -run=nope ./...

unit-ut:
unit-test:
strategy:
matrix:
version: ["1.20", "1.21", "1.22"]
Expand Down Expand Up @@ -56,16 +56,14 @@ jobs:
run: go test -race -covermode=atomic ./...

hz-test-unix:
strategy:
matrix:
version: stable
runs-on: [ self-hosted, X64 ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false # don't use cache for self-hosted runners

- name: Setup Environment
run: |
Expand All @@ -84,16 +82,13 @@ jobs:
hz-test-windows:
strategy:
matrix:
version: stable
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
go-version: stable

- name: Get changed files
id: changed-files
Expand Down

0 comments on commit 8906337

Please sign in to comment.