Skip to content

Commit 756a52a

Browse files
committed
2 parents 2747c0f + 230d132 commit 756a52a

File tree

10 files changed

+500
-2648
lines changed

10 files changed

+500
-2648
lines changed

.github/workflows/node.js.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [14.x, 16.x, 18.x]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
29+
- name: Run clean install
30+
run: |
31+
npm cache clean --force
32+
npm cache verify
33+
npm install
34+
35+
- name: Run build
36+
run: npm run build --if-present
37+
38+
- name: Run tests
39+
run: npm test
40+
env:
41+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
42+
USER_ID: ${{ secrets.USER_ID }}
43+
APP_URL: ${{ secrets.APP_URL }}
44+
SIGNER_EMAIL: ${{ secrets.SIGNER_EMAIL }}
45+
SIGNER_NAME: ${{ secrets.SIGNER_NAME }}
46+
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

0 commit comments

Comments
 (0)