-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.07 KB
/
run-tests.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Pull request tests
on:
pull_request:
types: [opened, synchronize]
branches: [main]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
env:
CONDA_SOLVER: libmamba
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up conda env
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: nc_data_lib
environment-file: ./conda-env.yml
auto-activate-base: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc # Read the Node.js version from .nvmrc
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
#This won't be OK for long db generation
- name: Generate database with NCrystal
run: npm run generate-data
- name: Build dev
run: npm run build-dev
- name: Build prod
run: npm run build-prod