CI #2
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- '*.md' | |
- 'MAKEFILE' | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test with go ${{ matrix.go }} | |
strategy: | |
matrix: | |
go: ["1.21", "stable"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- uses: actions/cache@v4 | |
with: | |
path: ./bin | |
key: ${{ runner.os }}-bin-${{ hashFiles('Makefile') }} | |
- run: make test | |
- run: git diff -s --exit-code |