Integer-only Counters #345
Workflow file for this run
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: Go | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- "release-*" | |
# Minimal permissions to be inherited by any job that don't declare it's own permissions | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_version: ["1.20", "1.21", "1.22"] | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Go ${{ matrix.go_version }} | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Cache Go modules | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: v1-go${{ matrix.go_version }} | |
- name: Run tests and check license | |
run: make check_license test | |
env: | |
CI: true | |
- name: Run style and unused | |
if: ${{ matrix.go_version == '1.20' }} | |
run: make style unused |