Skip to content

Sdk v3 deps

Sdk v3 deps #189

Workflow file for this run

name: CI
on: [push, pull_request]
env:
npm_config_engine_strict: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# checkout a dependent project
- name: Checkout cloud-core
uses: actions/checkout@v4
with:
repository: tstibbs/cloud-core
path: 'cloud-core' # will resolve to /home/runner/work/geo-bagging/geo-bagging/cloud-core
# checkout 'this' project
- name: Checkout geo-bagging
uses: actions/checkout@v4
with:
path: 'geo-bagging' # will resolve to /home/runner/work/geo-bagging/geo-bagging/geo-bagging
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 20.11.x
- name: Set up environment
run: mkdir cdk.tmp
working-directory: geo-bagging/backend
- name: Set up test environment
run: cp dummy.env .env
working-directory: geo-bagging/backend
- name: Load cloud-core dependencies
run: npm ci
working-directory: cloud-core/aws/utils
- name: Load cloud-core-ui dependencies
run: npm ci
working-directory: cloud-core/ui
# the ordering is weird, because we're trying to get information about fundamental failures quicker - i.e. breadth-first not depth-first
# get all deps
- name: "get deps: root"
run: npm ci
working-directory: geo-bagging
- name: "get deps: data-prep"
run: npm ci
working-directory: geo-bagging/data-prep
- name: "get deps: backend"
run: npm ci
working-directory: geo-bagging/backend
- name: "get deps: UI"
run: npm ci
working-directory: geo-bagging/ui
# build
- name: "build: backend"
run: npm run testsynth
working-directory: geo-bagging/backend
- name: "build: UI"
run: npm run build
working-directory: geo-bagging/ui
# test
- name: "test: data-prep"
run: npm run test
working-directory: geo-bagging/data-prep
- name: "test: backend"
run: npm run test
working-directory: geo-bagging/backend
- name: "test: UI"
run: npm run test
working-directory: geo-bagging/ui