-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.11 KB
/
ci.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
name: Build and Test Browser Extension
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run linting
run: yarn run dist:pretty
- name: Run tests
run: yarn run test:ci
- name: Build project
run: yarn run dist:build
- name: Check version update
run: node webpack/ver.js
- name: Build extension for Chrome
run: yarn run dist:rel
- name: Build extension for Firefox
run: yarn run dist:rel:ff
- name: Upload Chrome extension artifact
uses: actions/upload-artifact@v3
with:
name: chrome-extension
path: dist/extension.zip
- name: Upload Firefox extension artifact
uses: actions/upload-artifact@v3
with:
name: firefox-extension
path: dist/extension_firefox.zip