This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (60 loc) · 1.42 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
53
54
55
56
57
58
59
60
61
62
63
name: Web Extension CI
on:
push:
paths-ignore:
- "**.md"
- "public/**"
- ".github/**"
branches:
- master
pull_request:
paths-ignore:
- "**.md"
- "public/**"
- ".github/**"
branches:
- master
workflow_dispatch:
env:
NODE_VERSION: 19.x
jobs:
lint:
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Node.js setup
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Dependencies download
run: |
npm install --only=dev
- name: ESLint check
run: npm run lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
build_script: [build, build2] # dev] Temporarily disabled dev build
steps:
- uses: actions/[email protected]
- name: Node.js setup
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- name: Dependencies download
run: |
npm install --global yarn
yarn install
- name: Extension build
run: yarn ${{ matrix.build_script }}
env:
DEBUG_PRINTS: 1
- uses: actions/[email protected]
with:
name: ${{ matrix.build_script }}.extension
path: ./dist
if-no-files-found: error