Added logs and api response #360
Workflow file for this run
This file contains hidden or 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: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| 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: '20' | |
| - 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 test | |
| run: | | |
| cd backend | |
| npm run test | |
| - name: Run Circular Dependency Check - Backend | |
| run: | | |
| cd backend | |
| node ../canIMerge.js --check-circular | |
| - name: Run Circular Dependency Check - Frontend | |
| run: | | |
| cd frontend | |
| node ../canIMerge.js --check-circular |