Bump golang.org/x/crypto from 0.11.0 to 0.12.0 #1831
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: CI | |
on: | |
pull_request: | |
branches: | |
- v* | |
- develop/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_tags: [ 'stdlib', 'goccy', 'es256k', 'all'] | |
go: [ '1.19.x', '1.18.x' ] | |
name: "Test [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Cache Go modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Munge APT Repositories | |
run: curl --connect-timeout 1 https://azure.archive.ubuntu.com || (sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt-get update) | |
- name: Install Go stable version | |
if: matrix.go != 'tip' | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Go tip | |
if: matrix.go == 'tip' | |
run: | | |
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip | |
cd $HOME/gotip/src | |
./make.bash | |
echo "::set-env name=GOROOT::$HOME/gotip" | |
echo "::add-path::$HOME/gotip/bin" | |
echo "::add-path::$(go env GOPATH)/bin" | |
- name: Install stringer | |
run: go install golang.org/x/tools/cmd/stringer@latest | |
- name: Install jose | |
run: | | |
sudo apt-get install -y --no-install-recommends jose | |
- run: make generate | |
- name: Test with coverage | |
run: make cover-${{ matrix.go_tags }} | |
- name: Upload code coverage to codecov | |
if: matrix.go == '1.17.x' | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.out | |
- name: Check difference between generation code and commit code | |
run: make check_diffs | |