Skip to content

Commit

Permalink
Add GH Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewhany committed Oct 5, 2023
1 parent e3df252 commit fc06ee1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/backend-code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint & Format BE source code

on: [push]

jobs:
test:
name: Check the source code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install packages
run: npm ci
working-directory: ./backend

- name: Prettier
run: npm run format
working-directory: ./backend

- name: Lint
run: npm run lint
working-directory: ./backend
21 changes: 21 additions & 0 deletions .github/workflows/frontend-code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint & Format FE source code

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install packages
run: npm ci
working-directory: ./frontend

- name: Prettier
run: npm run format
working-directory: ./frontend

- name: Lint
run: npm run lint
working-directory: ./frontend

0 comments on commit fc06ee1

Please sign in to comment.