-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1013 Bytes
/
format.yml
File metadata and controls
47 lines (35 loc) · 1013 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: Chrome Extension CI
on:
push:
branches: ['**']
pull_request:
branches: [main]
jobs:
build-and-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Lint with ESLint
run: npm run lint
- name: Check Prettier format
run: npx prettier --check 'src/**/*.{js,html,css}'
- name: Build extension
run: npm run build
- name: Zip dist/
run: zip -r dist.zip dist
- name: Check zip file exists
run: test -f dist.zip && echo "dist.zip created"
- name: Upload dist.zip as artifact
uses: actions/upload-artifact@v4
with:
name: dist-zip
path: dist.zip
- name: Inspect zip content
run: unzip -l dist.zip | grep -E 'manifest\.json|popup\.html|content\.js'