allow passing context.Contex to jwe.Decrypt #2261
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', 'secp256k1-pem', 'asmbase64', 'alltags'] | |
go: [ '1.23', '1.22', '1.21' ] | |
name: "Test [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Cache Go modules | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
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 | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- name: Install stringer | |
run: go install golang.org/x/tools/cmd/stringer@latest | |
- name: Install tparse | |
run: go install github.com/mfridman/tparse@v0.12.2 | |
- 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 }} | |
- uses: bazelbuild/setup-bazelisk@v3 | |
- run: bazel run //:gazelle-update-repos | |
- name: Check difference between generation code and commit code | |
run: make check_diffs |