-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.04 KB
/
PR.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
name: PR
on:
pull_request:
types: ['opened', 'reopened', 'synchronize']
branches: [ "main" ]
paths:
- '**' # all files otherwise excludes wont work
- '!**/**/*.md' # ignore markdown files
- '!demo/**' # ignore demos folder
- '!sample/**' # ignore samples folder
- '!example/**' # ignore examples folder
jobs:
vet:
uses: ./.github/workflows/vet.yml
test:
uses: ./.github/workflows/test.yml
build:
uses: ./.github/workflows/build.yml
e2e:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # when all `needs` jobs are successful
needs: [ vet, test, build ]
uses: ./.github/workflows/e2e.yml
code-coverage-report:
needs: [ test ]
uses: ./.github/workflows/code-coverage.yml
with:
artifact_url: ${{ needs.test.outputs.coverage_artifact_url }}
pr_number: ${{ github.event.pull_request.number }}
secrets: inherit
cleanup:
if: ${{ always() }}
needs: [vet, test, e2e, build]
secrets: inherit
uses: ./.github/workflows/cleanup.yml