Run make tidy + gazelle #2354
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
# Smoke tests only run on non-master 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 master, workflows/ci.yml is run | |
name: Smoke Tests | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_tags: [ 'stdlib', 'goccy', 'es256k', 'alltags' ] | |
go: [ '1.23', '1.22', '1.21' ] | |
name: "Smoke [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Check documentation generator | |
run: | | |
find . -name '*.md' | xargs env AUTODOC_DRYRUN=1 perl tools/autodoc.pl | |
- name: Cache Go modules | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.20 | |
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@latest | |
- name: Install jose | |
run: sudo apt-get install -y --no-install-recommends jose | |
- run: make generate | |
- name: Check difference between generation code and commit code | |
run: make check_diffs | |
- name: make tidy | |
run: make tidy | |
- name: Run smoke tests | |
run: make smoke-${{ matrix.go_tags }} | |
- uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0 | |
- run: bazel build //... | |