github.com/lestrrat-go/jwx/v2@v2.0.21/.github/workflows/smoke.yml (about) 1 # Smoke tests only run on non-master branches. Smoke tests cut 2 # some corners by running selected tests in parallel (to shave off 3 # some execution time) 4 # Once a pull request is merged to master, workflows/ci.yml is run 5 name: Smoke Tests 6 on: 7 push: 8 branches-ignore: 9 - main 10 11 jobs: 12 build: 13 runs-on: ubuntu-latest 14 strategy: 15 matrix: 16 go_tags: [ 'stdlib', 'goccy', 'es256k', 'alltags' ] 17 go: [ '1.20', '1.19', '1.18' ] 18 name: "Smoke [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" 19 steps: 20 - name: Checkout repository 21 uses: actions/checkout@v4 22 - name: Check documentation generator 23 run: | 24 find . -name '*.md' | xargs env AUTODOC_DRYRUN=1 perl tools/autodoc.pl 25 - name: Cache Go modules 26 uses: actions/cache@v4 27 with: 28 path: | 29 ~/go/pkg/mod 30 ~/.cache/go-build 31 ~/.cache/bazel 32 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 33 restore-keys: | 34 ${{ runner.os }}-go- 35 - name: Install Go stable version 36 uses: actions/setup-go@v5 37 with: 38 go-version: ${{ matrix.go }} 39 check-latest: true 40 - name: Install stringer 41 run: go install golang.org/x/tools/cmd/stringer@latest 42 - name: Install tparse 43 run: go install github.com/mfridman/tparse@latest 44 - name: Install jose 45 run: sudo apt-get install -y --no-install-recommends jose 46 - run: make generate 47 - name: Check difference between generation code and commit code 48 run: make check_diffs 49 - name: make tidy 50 run: make tidy 51 - name: Run smoke tests 52 run: make smoke-${{ matrix.go_tags }} 53 - uses: bazelbuild/setup-bazelisk@v3 54 - run: bazel build //... 55