Set capacity for another slice initialization (#141, #143) #522
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
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: bazel mod tidy | |
run: | | |
./bin/ensure-unchanged bazel mod tidy | |
- 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 bazel run //:gazelle | |
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 |