diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index a383d1a..746c44a 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -4,7 +4,7 @@ on: pull_request: branches: - main - - migrate-blazor-auto + - migrate-blazor-autohttps://github.com/davishoang96/QuizApp/settings jobs: build: @@ -21,3 +21,21 @@ jobs: - name: dotnet build run: dotnet build --configuration Release + + # Set up Node.js + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + # Install dependencies for React app + - name: Install React dependencies + run: | + cd QuizApp.Client + npm install + + # Build the React app + - name: Build React app + run: | + cd QuizApp.Client + npm run build