WIP Gen #148
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ['1.19', '1.20', '1.21.x'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
name: Cache unicode | |
with: | |
path: DATA | |
key: ${{ runner.os }}-data-${{ hashFiles('**/*.txt') }} | |
# Cache richgo and golangci-lint | |
- uses: actions/cache@v3 | |
name: Cache bin | |
with: | |
path: bin | |
# The Makefile sets the version of richgo and golangci-lint | |
key: ${{ runner.os }}-bin-${{ hashFiles('**/Makefile') }} | |
- uses: actions/setup-go@v4 | |
name: Setup Go ${{ matrix.go-version }} | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Test | |
run: make ci | |
- name: Test Generate | |
run: make testgenerate | |
- name: Vet | |
run: make vet |