Disabled dotnet restore in gh actions #41
Workflow file for this run
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: Testing webapp | |
on: | |
workflow_call: | |
inputs: | |
working-directory: | |
description: The directory to publish | |
type: string | |
required: true | |
secrets: | |
testing_webapp_env_file: | |
description: The contents of the testing environment file | |
required: true | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit_tests: | |
name: Webapp unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 14.19.2 | |
- name: Set up env vars | |
env: | |
WEBAPP_ENV_FILE: ${{ secrets.testing_webapp_env_file }} | |
run: | | |
cd webapp | |
echo "$WEBAPP_ENV_FILE" > .env.json | |
- name: Install NPM dependencies | |
run: | | |
cd webapp | |
npm install --dev | |
- name: Run tests | |
run: | | |
cd webapp | |
npm run test |