...

Text file src/github.com/lestrrat-go/jwx/.github/workflows/smoke.yml

Documentation: github.com/lestrrat-go/jwx/.github/workflows

     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
     5name: Smoke Tests
     6on:
     7  push:
     8    branches-ignore:
     9      - main
    10
    11jobs:
    12  build:
    13    runs-on: ubuntu-latest
    14    strategy:
    15      matrix:
    16        go_tags: [ 'stdlib', 'goccy', 'es256k', 'all' ]
    17        go: [ '1.17.x', '1.16.x' ]
    18    name: "Smoke [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]"
    19    steps:
    20      - name: Checkout repository
    21        uses: actions/checkout@v2
    22      - name: Cache Go modules
    23        uses: actions/cache@v2
    24        with:
    25          path: |
    26            ~/go/pkg/mod
    27            ~/.cache/go-build
    28          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    29          restore-keys: |
    30            ${{ runner.os }}-go-
    31      - name: Install Go stable version
    32        uses: actions/setup-go@v2
    33        with:
    34          go-version: ${{ matrix.go }}
    35      - name: Install stringer
    36        run: go install golang.org/x/tools/cmd/stringer@latest
    37      - name: Install jose
    38        run: sudo apt-get install -y --no-install-recommends jose
    39      - run: make generate
    40      - name: Run smoke tests
    41        run: make smoke-${{ matrix.go_tags }}
    42      - name: Check difference between generation code and commit code
    43        run: make check_diffs
    44      - name: Run go mod tidy
    45        run: go mod tidy

View as plain text