-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 844 Bytes
/
nodejs.yml
File metadata and controls
36 lines (30 loc) · 844 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
on: [push]
name: "CI - nodejs -"
jobs:
test:
name: NodeJS Test
strategy:
matrix:
node-versions: [16.14]
runs-on: ubuntu-latest
env:
working_directory: ./client
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-versions }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-versions }}
- name: Setup yarn
run: npm install -g pnpm@v7
- name: Install dependencies
working-directory: ${{ env.working_directory }}
run: pnpm install --frozen-lockfile
- name: Test
working-directory: ${{ env.working_directory }}
run: pnpm run test:coverage