Skip to content

Commit

Permalink
Upgraded the action.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 2, 2024
1 parent eaf07de commit 7cf0054
Showing 1 changed file with 42 additions and 14 deletions.
56 changes: 42 additions & 14 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ name: Test JS bindings

jobs:
# Building the RDS files for the various RDS-reading utilities.
build_rds:
create_rds:
runs-on: ubuntu-latest
container: rocker/r-base:latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build RDS files
run: |
Expand All @@ -27,24 +27,52 @@ jobs:
name: rds-files
path: tests/rds/*.rds

check:
build_deps:
runs-on: ubuntu-latest
needs: build_rds
container: ghcr.io/kanaverse/scran.js-docker/builder:master
defaults:
run:
working-directory: /scran.js
container: ghcr.io/kanaverse/emcmake-docker/builder:2024-10-01

steps:
- name: Get to the right branch
- name: Checkout repo
uses: actions/checkout@v4

- name: Cache installed
id: installed
uses: actions/cache@v4
with:
path: extern/installed
key: deps-${{ hashFiles('**/extern/**/build.sh') }}

- name: Build HDF5
if: steps.installed.outputs.cache-hit != 'true'
run: |
git fetch --all
git checkout $GITHUB_SHA
cd extern/hdf5
./build.sh
- name: Build igraph
if: steps.installed.outputs.cache-hit != 'true'
run: |
cd extern/igraph
./build.sh
test:
runs-on: ubuntu-latest
needs: [ create_rds, build_deps ]
container: ghcr.io/kanaverse/emcmake-docker/builder:2024-10-01

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Cache installed
uses: actions/cache@v4
with:
path: extern/installed
key: deps-${{ hashFiles('**/extern/**/build.sh') }}

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- name: Update node build
run: bash build.sh main
Expand All @@ -56,7 +84,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: rds-files
path: /scran.js/tests/rds
path: tests/rds

- name: Run tests
run: |
Expand Down

0 comments on commit 7cf0054

Please sign in to comment.