Upgraded github.com/google/go-cmp (v0.5.8 => v0.7.0), go (1.15 => 1.21), github.com/golang-jwt/jwt/v4 (v4.4.2 => v4.5.2), upgrade Github Actions, remove ioutil package and get Continuous Integration working again
#1836
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "5 1 * * *" | |
| jobs: | |
| test: | |
| name: Test and lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: [ '1.22', '1.21' ] | |
| os: [ 'windows-latest', 'ubuntu-latest', 'macOS-latest' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Run go fmt (Go ${{ matrix.go }}) | |
| if: runner.os != 'Windows' | |
| run: diff -u <(echo -n) <(gofmt -d -s .) | |
| - name: Run go vet | |
| run: make vet | |
| - name: Run staticcheck (Go ${{ matrix.go }}) | |
| uses: dominikh/[email protected] | |
| with: | |
| version: "2023.1" | |
| install-go: false | |
| cache-key: ${{ matrix.go }} | |
| - name: Run Unit tests (Go ${{ matrix.go }}) | |
| run: make test |