Skip to content

Commit 5651415

Browse files
authored
fix: combine two workflows
1 parent 157a6fa commit 5651415

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.github/workflows/testing.yml

+34-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,42 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
build:
10+
check:
1111
runs-on: ubuntu-latest
12+
name: Check Syntax and code before trying to build
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js "20.x"
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20.x"
20+
21+
- name: Build
22+
run: |
23+
npm install
24+
npm run build
1225
26+
- name: Zip Chrome and firefox folders
27+
run: |
28+
zip -r dist/chrome-${{ github.sha }}.zip dist/chrome
29+
zip -r dist/firefox-${{ github.sha }}.zip dist/firefox
30+
31+
- name: Upload Firefox
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: firefox-zip
35+
path: dist/firefox-${{ github.sha }}.zip
36+
- name: Upload Chrome
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: chrome-zip
40+
path: dist/chrome-${{ github.sha }}.zip
41+
42+
compile:
43+
runs-on: ubuntu-latest
44+
needs: check
45+
name: Build for production
1346
strategy:
1447
matrix:
1548
node-version: [20.x]

0 commit comments

Comments
 (0)