adding api unit tests

This commit is contained in:
2026-03-01 16:46:27 -06:00
parent b7e74242b8
commit 6700c83692
35 changed files with 1607 additions and 177 deletions

View File

@@ -10,7 +10,7 @@ on:
type: string
jobs:
build:
build-and-test:
runs-on: ubuntu-latest
environment: ${{ inputs.environment_name }}
steps:
@@ -38,6 +38,10 @@ jobs:
run: |
npm run build -w api
- name: Test API
run: |
npm run test -w api
- name: Build Client
env:
VITE_API_URL: ${{ vars.VITE_API_URL }}

View File

@@ -13,7 +13,7 @@ jobs:
name: build
needs:
- changes
uses: ./.github/workflows/build.yaml
uses: ./.github/workflows/build_and_test.yaml
with:
environment_name: test
version_number: ${{ github.run_id }}

View File

@@ -12,7 +12,7 @@ jobs:
name: build
needs:
- changes
uses: ./.github/workflows/build.yaml
uses: ./.github/workflows/build_and_test.yaml
with:
environment_name: pull_request
version_number: ${{ github.run_id }}

View File

@@ -7,7 +7,7 @@ on:
jobs:
build:
name: build
uses: ./.github/workflows/build.yaml
uses: ./.github/workflows/build_and_test.yaml
with:
environment_name: prod
version_number: ${{ github.ref_name }}