1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Run tests on scim_v2 crate
on:
push:
branches:
- '**'
- '!main'
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@110f36749599534ca96628b82f52ae67e5d95a3c # v2.0.1
with:
rust-version: stable
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Cargo Check
run: cargo check
- name: Cargo Test
run: cargo test
- name: Cargo Clippy
run: cargo clippy -- -D warnings
- name: Cargo format
run: cargo fmt --check
- name: Verify generated filter parser
run: |
cargo install lalrpop --version 0.23.1
lalrpop src/filter_parser.lalrpop
git diff --exit-code src/filter_parser.rs || {
echo "::error::src/filter_parser.rs does not match regenerated output from src/filter_parser.lalrpop"
echo "Run 'lalrpop src/filter_parser.lalrpop' and commit the result."
exit 1
}