Skip to content

[OUR415-95/TECH-RISK-4] Adds tests for HomePage component #601

[OUR415-95/TECH-RISK-4] Adds tests for HomePage component

[OUR415-95/TECH-RISK-4] Adds tests for HomePage component #601

Workflow file for this run

name: Build, lint and run unit tests.
on:
pull_request:
branches: [main, development]
jobs:
build_and_test_app:
runs-on: ubuntu-latest
environment: "dev"
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- run: npm i
- run: npm run prettier
- run: npm run lint
- run: npm run test
- run: npm run build
env:
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }}
AUTH0_REDIRECT_URI: ${{ secrets.AUTH0_REDIRECT_URI }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GOOGLE_ANALYTICS_GA4_ID: ${{ secrets.GOOGLE_ANALYTICS_GA4_ID }}
ALGOLIA_INDEX_PREFIX: ${{ secrets.ALGOLIA_INDEX_PREFIX }}
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
ALGOLIA_READ_ONLY_API_KEY: ${{ secrets.ALGOLIA_READ_ONLY_API_KEY }}