-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (36 loc) · 885 Bytes
/
pull-request.yml
File metadata and controls
42 lines (36 loc) · 885 Bytes
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: Pull Request Check
permissions:
contents: read
pull-requests: write
on:
pull_request:
branches:
- main
- next
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install npm 11
run: npm install -g npm@11
- run: npm ci
# Run with the target branch as the base.
- name: Lint
run: npm run lint
- name: Build
run: |
npx nx affected --target=build --base=origin/${{ github.base_ref }}
npx nx affected --target=post --base=origin/${{ github.base_ref }}
- name: Test
run: |
if [ -d "./dist" ]; then
npx playwright install --with-deps
npm run test:pr
fi