Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Apr 24, 2024
1 parent 6587795 commit d9e12b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['tip', '1.22', '1.21', '1.20', '1.19', '1.18']
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
check-latest: true
- uses: actions/checkout@v4
- name: Build
run: |
git clone --depth=1 https://github.com/${GITHUB_REPOSITORY}
cd $(basename ${GITHUB_REPOSITORY})
go build -v -race
go test -v
run: go build -v -race
- name: Test
run: go test -v
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ jobs:
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.56.2
git clone --depth=1 https://github.com/${GITHUB_REPOSITORY}
cd $(basename ${GITHUB_REPOSITORY})
../bin/golangci-lint run
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.2
./bin/golangci-lint run

0 comments on commit d9e12b8

Please sign in to comment.