-
Notifications
You must be signed in to change notification settings - Fork 64
34 lines (26 loc) · 1.06 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
# This workflow sets the 'test' status check to success in case it's a docs only PR and e2e.yml is not triggered
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
name: test # The name must be the same as in test.yml
on:
pull_request:
paths-ignore: # This expression needs to match the paths ignored on e2e.yml.
- '**'
- '!*.md'
- '!*.asciidoc'
- '!docs/**'
permissions:
contents: read
## Concurrency only allowed in the main branch.
## So old builds running for old commits within the same Pull Request are cancelled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test-windows:
runs-on: windows-latest
steps:
- run: 'echo "Not required for docs"'
test-linux:
runs-on: ubuntu-latest
steps:
- run: 'echo "Not required for docs"'