-
Notifications
You must be signed in to change notification settings - Fork 195
38 lines (29 loc) · 945 Bytes
/
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
36
37
name: 3Dmol.js CI
on:
pull_request:
push:
branches: [master]
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
# As our package has a postInstall script, which in turn calls `npm run build`, hence we do not need a explicit job for that
- name: Install Dependencies & Build 3dmol.js
run: npm install
- name: Test
run: npm test
- name: Coverage
env:
NODE_OPTIONS: "--max_old_space_size=8192"
# coverage has trouble fetching data for some reason in the CI,
# I don't actually care about the test results (that's tested above)
# so ignore any failure here
run: npm run cover
continue-on-error: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3