-
-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (47 loc) · 1.42 KB
/
pull_request.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
name: Pull Request
on:
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Update npm for attestation feature
run: npm install -g npm@latest
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Run linter
run: npm run lint
- name: Build extension
run: npm run build
- name: Run tests
run: npm run test
- name: Run e2e tests in simulated X environment
run: xvfb-run -a npm run test:e2e
if: runner.os == 'Linux'
- name: Run e2e tests
if: runner.os != 'Linux'
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 5
max_attempts: 3
command: npm run test:e2e
- name: Run web e2e tests
if: runner.os != 'macOS'
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 5
max_attempts: 3
command: npm run test:web