Skip to content

Commit 7c93454

Browse files
authored
Add test-docs workflow to satisfy required workflow actions when only doc changes occcur (#366)
1 parent ebd321d commit 7c93454

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test-docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow sets the 'test' status check to success in case it's a docs only PR and e2e.yml is not triggered
2+
# 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
3+
name: test # The name must be the same as in test.yml
4+
5+
on:
6+
pull_request:
7+
paths-ignore: # This expression needs to match the paths ignored on e2e.yml.
8+
- '**'
9+
- '!*.md'
10+
- '!*.asciidoc'
11+
- '!docs/**'
12+
13+
permissions:
14+
contents: read
15+
16+
## Concurrency only allowed in the main branch.
17+
## So old builds running for old commits within the same Pull Request are cancelled
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
22+
jobs:
23+
24+
test-windows:
25+
runs-on: windows-latest
26+
27+
steps:
28+
- run: 'echo "Not required for docs"'
29+
30+
test-linux:
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- run: 'echo "Not required for docs"'

0 commit comments

Comments
 (0)