Add CI using goyek #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
goyek: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version: '1.22' | |
check-latest: true | |
- run: ./goyek.sh -v ci | |
# TODO: Uncomment after making the repository public. | |
# - uses: codecov/[email protected] | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# fail_ci_if_error: true | |
# file: ./coverage.out | |
check-links: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: lycheeverse/[email protected] | |
with: | |
fail: true | |
compatibility-test: | |
strategy: | |
matrix: | |
go-version: | |
- '1.21' | |
- '1.22' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
- run: go test -race ./... |