-
Notifications
You must be signed in to change notification settings - Fork 43
78 lines (71 loc) · 1.97 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "CI Check for PullRequest"
on:
pull_request:
jobs:
pr-labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Git"
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
build:
uses: ./.github/workflows/ci.reusable.build.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
test-coverage:
needs: build
uses: ./.github/workflows/ci.reusable.test-coverage.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
lint:
needs: build
uses: ./.github/workflows/ci.reusable.lint.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
misc:
needs: build
uses: ./.github/workflows/ci.reusable.misc.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
test-e2e:
needs: build
uses: ./.github/workflows/ci.reusable.test-e2e.yml
strategy:
matrix:
# @TODO-ZM: add back windows once we replace cypress with playwright
os: ["ubuntu-latest", "macos-latest"]
node-version: ["20"]
# @TODO-ZM: add other browsers once we replace cypress with playwright
browser: ["chrome"]
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
browser: ${{ matrix.browser }}