-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 909 Bytes
/
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
37
38
39
40
41
42
name: PR
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run Unit Tests
uses: ./.github/workflows/test.yml
secrets: inherit
lint:
name: Run Linters
uses: ./.github/workflows/lint.yml
secrets: inherit
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
e2e-test:
name: Run E2E Tests
uses: ./.github/workflows/e2e.yml
secrets: inherit
required:
name: PR Check Summary
needs: [test, lint, build, e2e-test]
if: always()
runs-on: ubuntu-latest
steps:
- name: Fail if conditional jobs failed
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')
run: exit 1