adding api unit tests (#108)

* adding api unit tests

* adding not signed in alerts to flights and logs
This commit was merged in pull request #108.
This commit is contained in:
2026-03-08 14:58:24 -05:00
committed by GitHub
parent b7e74242b8
commit 487afb08d6
40 changed files with 1621 additions and 182 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 }}