-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.14 KB
/
test.yaml
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
37
38
39
40
41
name: Unit Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
DEBUG_TEST_SETUP: true
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node.js
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: 18
- name: Install dependencies
run: npm install # npm install instead of npm ci is used to prevent unsupported platform errors due to the fsevents sub-dependency
- name: Setup Deno
uses: denoland/setup-deno@0df5d9c641efdff149993c321fc27c11c5df8623 # v1.1.3
with:
deno-version: '1.36.2'
# 'integration' are the Jest tests that cover code in unit-testing way, so both are included
- name: Run unit tests
run: npm run test:ci
- name: Upload test coverage report
if: always()
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: unit-tests-coverage
path: ./coverage/lcov.info