feat: add pre-acceptance and pre-rejection status #477
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: Build and lint | |
on: | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16.14.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node_modules | |
id: cache-node_modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }} | |
- name: Install | |
run: npm run prefrontend && npm run prebackend | |
- name: Build frontend | |
run: cd frontend && CI=false npm run build | |
- name: Build backend | |
run: cd backend && CI=false npm run build | |
- name: ESLint | |
run: npm run eslint | |
- name: Prettier | |
run: npm run prettier |