Skip to content

readme update

readme update #546

name: Lint, Format, & Test
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
frontend:
name: Frontend Lint and Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run ESLint
run: npm install
npx eslint .
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Run Prettier Check
run: npx prettier --check .
backend:
name: Backend Lint
runs-on: ubuntu-20.04
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: docker-compose run --rm zbackend sh -c "flake8"