Skip to content

feat: add pre-acceptance and pre-rejection status #477

feat: add pre-acceptance and pre-rejection status

feat: add pre-acceptance and pre-rejection status #477

Workflow file for this run

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