Skip to content

[OGUI-1844] Implementation of database service-controller structure and seeding creations #290

[OGUI-1844] Implementation of database service-controller structure and seeding creations

[OGUI-1844] Implementation of database service-controller structure and seeding creations #290

Workflow file for this run

name: Tokenization
on:
pull_request:
paths:
- 'Tokenization/**/*'
- '.github/workflows/tokenization.yml'
push:
branches:
- 'dev'
jobs:
lint-check-backend:
name: Check eslint rules for backend on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Install backend dependencies
run: (cd Tokenization/backend/central-system; npm i)
lint-check-webapp:
name: Check eslint rules for webapp on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Install webapp dependencies
run: (cd Tokenization/webapp; npm i)
- name: Typecheck webapp
run: (cd Tokenization/webapp; npm run typecheck)
- name: Lint webapp
run: (cd Tokenization/webapp; npm run lint)
ui-test:
needs:
- lint-check-webapp
name: UI-tests for webapp application
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Generate test Vault certificates for UI docker:test
run: |
bash Tokenization/scripts/actions-certificates-creation.sh
- name: Run webapp UI tests (docker)
run: (cd Tokenization/webapp; npm run docker:test)
central-system-test:
needs:
- lint-check-backend
name: Central System backend tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Generate test Vault certificates
run: |
bash Tokenization/scripts/actions-certificates-creation.sh
echo "VAULT_ADDR=https://vault.local:9300" >> $GITHUB_ENV
echo "VAULT_AUTH_METHOD=cert" >> $GITHUB_ENV
echo "VAULT_ROLE=central-system" >> $GITHUB_ENV
echo "VAULT_CACERT_B64=$(base64 -w0 Tokenization/docker/vault/ca.crt)" >> $GITHUB_ENV
echo "VAULT_CENTRAL_SYSTEM_CERT_B64=$(base64 -w0 Tokenization/docker/vault/central-system.crt)" >> $GITHUB_ENV
echo "VAULT_CENTRAL_SYSTEM_KEY_B64=$(base64 -w0 Tokenization/docker/vault/central-system.key)" >> $GITHUB_ENV
- name: Install backend dependencies
run: (cd Tokenization/backend/central-system; npm i)
- name: Run all backend tests (unit + Vault integration via docker)
run: (cd Tokenization/backend/central-system; npm run test:all)