Skip to content

Use io.ReadFull to ensure that generated jwk match the expected keysize #2014

Use io.ReadFull to ensure that generated jwk match the expected keysize

Use io.ReadFull to ensure that generated jwk match the expected keysize #2014

Workflow file for this run

name: CI
on:
pull_request:
branches:
- v*
- develop/*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go_tags: [ 'stdlib', 'goccy', 'es256k', 'asmbase64', 'alltags']
go: [ '1.20', '1.19', '1.18']
name: "Test [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/bazel
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Go stable version
if: matrix.go != 'tip'
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- 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 tparse
run: go install github.com/mfridman/[email protected]
- name: Install jose
run: sudo apt-get install -y --no-install-recommends jose
- run: make generate
- name: make tidy
run: make tidy
- name: Test with coverage
run: make cover-${{ matrix.go_tags }}
- name: Upload code coverage to codecov
if: matrix.go == '1.19'
uses: codecov/codecov-action@v3
with:
file: ./coverage.out
- uses: bazelbuild/setup-bazelisk@v2
- run: bazel run //:gazelle-update-repos
- name: Check difference between generation code and commit code
run: make check_diffs