Merge pull request #399 from COS301-SE-2024/feat/accentsBackground #457
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: builder | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- feature/build-fix | |
- stablization | |
- feature/hotfix | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.11.1 | |
- name: Install Dependencies | |
run: | | |
npm install | |
cd Frontend | |
npm install | |
cd ../Backend | |
npm install | |
working-directory: ./ | |
- name: Build Angular App | |
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/feature/build-fix' || github.ref == 'refs/heads/stablization' || github.ref == 'refs/heads/feature/hotfix') | |
run: npm run build | |
working-directory: ./Frontend | |
- name: Build NestJS App | |
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/feature/build-fix' || github.ref == 'refs/heads/stablization' || github.ref == 'refs/heads/feature/hotfix') | |
run: npm run build | |
working-directory: ./Backend |