-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (48 loc) · 1.26 KB
/
run-tests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
on: [push]
name: Test JS bindings
jobs:
# Building the RDS files for the various RDS-reading utilities.
build_rds:
runs-on: ubuntu-latest
container: rocker/r-base:latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Build RDS files
run: |
cd tests/rds
R -f generate.R
- name: Upload RDS files
uses: actions/upload-artifact@v3
with:
name: rds-files
path: tests/rds/*.rds
check:
runs-on: ubuntu-latest
needs: build_rds
container: ghcr.io/kanaverse/scran.js-docker/builder:master
defaults:
run:
working-directory: /scran.js
steps:
- name: Get to the right branch
run: |
git fetch --all
git checkout $GITHUB_SHA
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Update node build
run: bash build.sh main
- name: Update NPM packages
run: npm i --include=dev
- name: Download RDS files
uses: actions/download-artifact@v3
with:
name: rds-files
path: /scran.js/tests/rds
- name: Run tests
run: |
export CHECK_RDS=1
npm run test