Skip to content

Commit 1f596c8

Browse files
committed
add test
1 parent a09806a commit 1f596c8

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/releases.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,26 @@ on:
66
- "*"
77

88
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18.x]
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm ci
22+
23+
- name: Run Jest tests
24+
run: npx test
25+
926
build:
1027
runs-on: ubuntu-latest
28+
needs: test
1129
strategy:
1230
matrix:
1331
node-version: [18.x]
@@ -23,16 +41,16 @@ jobs:
2341
- name: Write firefox manifest version json
2442
run: cat <<< $(jq '.version="${{github.ref_name}}"' public/manifest.firefox.json) > public/manifest.firefox.json
2543

26-
2744
- name: Use Node.js ${{ matrix.node-version }}
2845
uses: actions/setup-node@v3
2946
with:
3047
node-version: ${{ matrix.node-version }}
3148
- run: npm ci
49+
3250
- run: npm run build-zip
3351
- run: npm run build-firefox-zip
3452

3553
- uses: ncipollo/release-action@v1
3654
with:
3755
artifacts: "*.zip"
38-
body: "[Change Log](https://github.com/ttop32/MouseTooltipTranslator/blob/main/doc/description.md#change-log)"
56+
body: "[Change Log](https://github.com/ttop32/MouseTooltipTranslator/blob/main/doc/description.md#change-log)"

0 commit comments

Comments
 (0)