-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (38 loc) · 1.16 KB
/
ci-main.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
name: Continuous Integration Main
on:
push:
branches:
- main
permissions: read-all
jobs:
unit-tests:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup
uses: ./.github/actions/setup
- name: Size check
run: npm run size-limit
- run: npm run version:check
- name: Lint code
run: npm run lint
- name: Transpile code
run: npm run compile
- name: Unit test
run: npm run test:unit:ci
local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: true
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup
uses: ./.github/actions/setup
- name: Local integration tests using ${{ matrix.browser }}
run: npm run test:integration:local:${{ matrix.browser }}:_execute