This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Update README.md #410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |