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 c1b513b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['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: go build -v -race
- name: Test
run: go test -v
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
- name: Lint
run: |
git clone --depth=1 https://github.com/${GITHUB_REPOSITORY}
cd $(basename ${GITHUB_REPOSITORY})
go build -v -race
go test -v
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.2
./bin/golangci-lint run
21 changes: 0 additions & 21 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit c1b513b

Please sign in to comment.