Move quiz app one level up #17
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: BTA.QuizApp | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_dotnet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '9.x' | |
include-prerelease: true | |
- name: dotnet build | |
run: dotnet build --configuration Release | |
- name: dotnet test | |
run: dotnet test --verbosity normal | |
build_react: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install React dependencies | |
run: | | |
cd QuizApp.Client | |
npm install | |
- name: Build React app | |
run: | | |
cd QuizApp.Client | |
npm run build |