Skip to content

Commit

Permalink
chore: setup CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
EjembiEmmanuel committed Dec 6, 2024
1 parent 83ff66c commit 7db7209
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/format_lint_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Format, Lint, and Build

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
lint-and-build-backend:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install --legacy-peer-deps

- name: Run linting check
run: npm run lint:check

- name: Run formatting check
run: npm run format:check

- name: Build
run: npm run build

0 comments on commit 7db7209

Please sign in to comment.