Merge pull request #132 from CS3219-AY2425S1/jmsandiegoo/bugfix #24
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: Frontend CI Workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: | | |
cd frontend | |
npm install | |
# Build Check | |
- name: Build Project | |
run: | | |
cd frontend | |
npm run build | |
# Lint Check | |
- name: Lint Code | |
run: | | |
cd frontend | |
npm run lint |