-
Notifications
You must be signed in to change notification settings - Fork 17
53 lines (48 loc) · 1.52 KB
/
test-docs.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Run doc tests
on:
pull_request:
paths-ignore:
- '**/docs/**'
jobs:
setup:
runs-on: ubuntu-latest
outputs:
data-transforms-go: ${{ steps.filter.outputs.data-transforms-go }}
data-transforms-rust: ${{ steps.filter.outputs.data-transforms-rust }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Determine changed paths
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
data-transforms-go:
- 'data-transforms/go/**'
data-transforms-rust:
- 'data-transforms/rust/**'
run-tests:
needs: setup
strategy:
fail-fast: false # Ensure all matrix jobs run to completion even if one fails
matrix:
os: [ubuntu-latest] # Only using Linux for now since macOS takes a long time
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Test Go transforms
if: needs.setup.outputs.data-transforms-go == 'true'
uses: doc-detective/github-action@v1
with:
input: data-transforms/go
config: data-transforms/doc-tests/config.json
exit_on_fail: true
- name: Test Rust transforms
if: needs.setup.outputs.data-transforms-rust == 'true'
uses: doc-detective/github-action@v1
with:
input: data-transforms/rust
config: data-transforms/doc-tests/config.json
exit_on_fail: true