Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Fixed Schedule Calculation bug and updated validation #384

Fixed Schedule Calculation bug and updated validation

Fixed Schedule Calculation bug and updated validation #384

Workflow file for this run

name: APP Unit tests
on:
pull_request:
branches:
- main
- dev
push:
branches:
- dev
jobs:
test:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
runs-on: ubuntu-latest
name: frontend coverage
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Dependencies
working-directory: ./app/WhereIsThePower
run: npm install --frozen-lock
- name: Update env
uses: cschleiden/replace-tokens@v1.2
with:
tokenPrefix: '{'
tokenSuffix: '}'
files: ./app/WhereIsThePower/src/environments/environment.ts
env:
MapboxApiKey: ${{ secrets.TEST_SECRET }}
- name: Run Tests
working-directory: ./app/WhereIsThePower
run: npm run test:coverage
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
name: frontend coverage-report
fail_ci_if_error: true