Skip to content

Bacpop 186 v9 db

Bacpop 186 v9 db #709

Workflow file for this run

name: jest CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- "bacpop-*"
jobs:
unit_frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app/client-v2
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ./app/client-v2/package-lock.json
- run: npm ci
- name: Run unit tests
run: npm run test:coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
unit_and_integration_backend:
runs-on: ubuntu-latest
env:
STORAGE_PATH: ${{ github.workspace }}/storage/dbs
defaults:
run:
working-directory: ./app/server
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Login to GHCR (GitHub Packages)
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ./app/server/package-lock.json
- run: npm ci
- name: get config file
run: |
pwd
cp ./src/resources/config.json.in.development ./src/resources/config.json
- name: Restore storage cache
uses: actions/cache@v3
with:
path: ${{ env.STORAGE_PATH }}
key: dbs-cache-${{ runner.os }}
restore-keys: |
dbs-cache-
- name: run all components
working-directory: .
run: ./scripts/run_test server-only -mount ${{ env.STORAGE_PATH }}
- name: Run unit and integration tests
run: npm run test
- name: stop all components
working-directory: .
run: ./scripts/stop_test server-only