Update DZ_RECIPE.yml #46
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: Internal Employee CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**' | |
jobs: | |
backend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js for backend | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install backend dependencies | |
run: | | |
cd backend | |
npm install | |
- name: Lint backend code | |
run: | | |
cd backend | |
npm run lint | |
- name: Run backend tests | |
run: | | |
cd backend | |
npm test | |
frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js for frontend | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install frontend dependencies | |
run: | | |
cd frontend | |
npm install | |
- name: Lint frontend code | |
run: | | |
cd frontend | |
npm run lint | |
- name: Run frontend tests | |
run: | | |
cd frontend | |
npm test | |
check-docker-compose: | |
runs-on: ubuntu-latest | |
needs: [backend, frontend] | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 |