generated from abhijithvijayan/web-extension-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (37 loc) · 897 Bytes
/
ci.yaml
File metadata and controls
47 lines (37 loc) · 897 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
43
44
45
46
47
name: Check CI
on:
push:
pull_request:
workflow_dispatch:
env:
NODE_VERSION: 20
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set Node.js environment
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- run: yarn test unitTests
integration:
needs: check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: ["Chrome", "Edge", "Firefox"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn install
- run: yarn run build
- name: Test
run: yarn test -t "${{ matrix.browser }} Integration Test"