Skip to content

Commit b874df6

Browse files
committed
Shared: Tighten test triggers and add Yeast test workflow
Removes the tree-sitter-extractor and yeast directories from the workflows that trigger tests for C#, Go, Rust, and Swift inside the /shared directory. Also adds a separate workflow for running the Yeast tests whenever changes are made inside /yeast, /yeast-macros, or /yeast-schema.
1 parent 89844db commit b874df6

5 files changed

Lines changed: 54 additions & 0 deletions

File tree

‎.github/workflows/csharp-qltest.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
paths:
66
- "csharp/**"
77
- "shared/**"
8+
- "!shared/tree-sitter-extractor/**"
9+
- "!shared/yeast/**"
10+
- "!shared/yeast-macros/**"
11+
- "!shared/yeast-schema/**"
812
- "misc/bazel/**"
913
- .github/actions/fetch-codeql/action.yml
1014
- codeql-workspace.yml
@@ -16,6 +20,10 @@ on:
1620
paths:
1721
- "csharp/**"
1822
- "shared/**"
23+
- "!shared/tree-sitter-extractor/**"
24+
- "!shared/yeast/**"
25+
- "!shared/yeast-macros/**"
26+
- "!shared/yeast-schema/**"
1927
- "misc/bazel/**"
2028
- .github/workflows/csharp-qltest.yml
2129
- .github/actions/fetch-codeql/action.yml

‎.github/workflows/go-tests.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- "go/**"
66
- "!go/documentation/**"
77
- "shared/**"
8+
- "!shared/tree-sitter-extractor/**"
9+
- "!shared/yeast/**"
10+
- "!shared/yeast-macros/**"
11+
- "!shared/yeast-schema/**"
812
- .github/workflows/go-tests.yml
913
- .github/actions/**
1014
- codeql-workspace.yml

‎.github/workflows/rust.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- "misc/bazel/**"
88
- "misc/codegen/**"
99
- "shared/**"
10+
- "!shared/yeast/**"
11+
- "!shared/yeast-macros/**"
12+
- "!shared/yeast-schema/**"
1013
- "MODULE.bazel"
1114
- .github/workflows/rust.yml
1215
- .github/actions/**

‎.github/workflows/swift.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- "misc/bazel/**"
88
- "misc/codegen/**"
99
- "shared/**"
10+
- "!shared/tree-sitter-extractor/**"
11+
- "!shared/yeast/**"
12+
- "!shared/yeast-macros/**"
13+
- "!shared/yeast-schema/**"
1014
- "*.bazel*"
1115
- .github/workflows/swift.yml
1216
- .github/actions/**

‎.github/workflows/yeast-test.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test Yeast
2+
3+
on:
4+
push:
5+
paths:
6+
- "shared/yeast/**"
7+
- "shared/yeast-macros/**"
8+
- "shared/yeast-schema/**"
9+
- .github/workflows/yeast-test.yml
10+
branches:
11+
- main
12+
- "rc/*"
13+
pull_request:
14+
paths:
15+
- "shared/yeast/**"
16+
- "shared/yeast-macros/**"
17+
- "shared/yeast-schema/**"
18+
- .github/workflows/yeast-test.yml
19+
branches:
20+
- main
21+
- "rc/*"
22+
23+
env:
24+
CARGO_TERM_COLOR: always
25+
26+
permissions:
27+
contents: read
28+
29+
jobs:
30+
test:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v5
34+
- name: Run tests
35+
run: cargo test --verbose --package codeql-extractor --package yeast --package yeast-macros --package yeast-schema

0 commit comments

Comments
 (0)