Merge pull request #14 from lestrrat-go/feat-signwithopts #40
This file contains hidden or 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
| # Smoke tests only run on non-main branches. Smoke tests cut | |
| # some corners by running selected tests in parallel (to shave off | |
| # some execution time) | |
| # Once a pull request is merged to main, workflows/ci.yml is run | |
| name: Smoke Tests | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go: [ '1.24', '1.23' ] | |
| name: "Smoke [ Go ${{ matrix.go }} ]" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Check documentation generator | |
| run: | | |
| find . -name '*.md' | xargs env AUTODOC_DRYRUN=1 perl tools/autodoc.pl | |
| - name: Cache Go modules | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install Go stable version | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| check-latest: true | |
| - name: make tidy | |
| run: go mod tidy | |
| - name: Run smoke tests | |
| run: go test -v -race ./... |