-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 1 KB
/
ci.yml
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
name: CI
on: push
jobs:
build:
strategy:
matrix:
node: [10, 16]
os:
- ubuntu-latest
# windows is currently disabled, because I have no idea how to override the default
# language and timezone, that the `npm test` script tries to do…
#- windows-latest
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
env:
CI: true
# the codecov uploader only runs on unix,
# frequently hangs for whatever reason,
# and we have no platform-specific code anyway…
- name: upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.node == 16
timeout-minutes: 1
run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -B ${{ github.ref }} -f coverage/coverage-final.json