Skip to content

Commit

Permalink
add ci checks for lint, format, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Oct 9, 2024
1 parent 8db3916 commit c4b31f3
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 15 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/code-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Code Linting

on:
push:
branches:
- 'feature/**'
- 'main'

jobs:
ts-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: npm ci
- name: Build Vite & TSC
run: npm run build

eslint-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: npm ci
- name: Run Eslint
run: npm run lint

prettier-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: npm ci
- name: Run Prettier
run: npm run format
17 changes: 17 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Unit Tests
on:
pull_request:
branches:
- main
- production

jobs:
jest-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: npm ci
- name: Run Tests
run: npm run test
Loading

0 comments on commit c4b31f3

Please sign in to comment.