-
Notifications
You must be signed in to change notification settings - Fork 284
29 lines (27 loc) · 922 Bytes
/
node.js.yml
File metadata and controls
29 lines (27 loc) · 922 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
name: Unit test, log code coverage, and build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install dependencies
run: yarn install
# Build before running unit tests so that built types are updated before
# running types unit tests (`tsc`).
- name: Build
run: yarn run build
- name: Run tests
run: yarn test # generates coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
# Disabling bundlesize for now because of:
# https://github.com/siddharthkp/bundlesize/pull/370
# - name: Check bundle sizes
# run: yarn run bundlesize:no-build
# env:
# BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}