Skip to content

use a better go version #505

use a better go version

use a better go version #505

Workflow file for this run

name: Run tests
on: push
jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Mount bazel cache
uses: actions/cache@v2
with:
path: "~/.cache/bazel"
key: bazel
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
- name: Buildifier
run: |
./bin/ensure-unchanged bazel run //:buildifier
- name: Files generated by Antlr
run: |
# Need to generate the files before running the script because the
# antlr rules are only declaring output directories and not the
# output files. This causes bazel to not regenerate sources needed
# and referenced by the update script if become missing or out of
# date.
bazel build //internal/parser:generated
./bin/ensure-unchanged bazel run //internal/parser:update
- name: Gazelle
run: |
./bin/ensure-unchanged ./bin/gazelle
./bin/ensure-unchanged ./bin/gazelle-update-repos
test:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
name: Run tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Mount bazel cache
uses: actions/cache@v2
with:
path: "~/.cache/bazel"
key: bazel
- run: bazel test //...
integration_test:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
name: Test example on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
stable: false
go-version: '1.21.6'
- run: ./bin/ensure-unchanged ./example/test.sh