Skip to content

Update DZ_RECIPE.yml #46

Update DZ_RECIPE.yml

Update DZ_RECIPE.yml #46

Workflow file for this run

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