-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (31 loc) · 924 Bytes
/
unit-test.yaml
File metadata and controls
33 lines (31 loc) · 924 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
name: Unit Tests
on:
push:
branches:
- main
- dev
paths-ignore:
- "**/*.md"
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
strategy:
matrix:
node-version: [18, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run install-locally
- name: Unset CI
run: echo "CI=false" >> "$GITHUB_ENV"
if: runner.os != 'Windows'
- name: Unset CI
run: echo "CI=false" | Out-File -FilePath $env:GITHUB_ENV -Append
if: runner.os == 'Windows'
- run: npm test