This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
This is Just a Test for Discord Notifications #33
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Ensure React Project Builds | |
on: | |
push: | |
branches: [ "dev", "main" ] | |
pull_request: | |
branches: [ "dev", "main" ] | |
env: | |
WORKING_DIRECTORY: ./src/EducationTrail/ClientApp | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- run: npm ci --prefix "${{ env.WORKING_DIRECTORY }}" | |
- run: npm run build --prefix "${{ env.WORKING_DIRECTORY }}" | |
- run: npm test --prefix "${{ env.WORKING_DIRECTORY }}" |