Aditya #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: Pre-merge Checks | |
# Run the workflow on every pull request targeting the 'main' branch | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install frontend dependencies | |
run: | | |
cd frontend | |
npm install | |
- name: Build frontend | |
run: | | |
cd frontend | |
npm run build | |
- name: Install backend dependencies | |
run: | | |
cd backend | |
npm install | |
- name: Build backend | |
run: | | |
cd backend | |
npm run build | |
- name: Install pre-merge check dependencies | |
run: | | |
npm install typescript ts-morph | |
- name: Run Circular Dependency Check | |
run: | | |
node canIMerge.js --check-circular |