upgrade syn to 2.0 and clap to 4.0 #32
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: ci | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
tmate_debug: | |
description: 'Run tmate for debugging' | |
type: boolean | |
required: false | |
default: false | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: bazel cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/bazelisk | |
~/.cache/bazel | |
key: ${{ runner.os }}-${{ github.ref }} | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: tmate debugging | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
limit-access-to-actor: true | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tmate_debug && always() }} | |
- name: build and test | |
run: bazel test //... --config ci | |
- name: test gazelle invariance | |
run: bazel run //:gazelle -- --mode=diff --strict | |
- name: build and test for example | |
run: bazel test //... | |
working-directory: ./example | |
- name: test gazelle invariance for example | |
run: bazel run //:gazelle -- --mode=diff --strict | |
working-directory: ./example |