Skip to content

Commit

Permalink
Merge pull request #110 from ufosc/feature/jukebox-auth
Browse files Browse the repository at this point in the history
add ci checks for lint, format, tests
  • Loading branch information
IkeHunter authored Oct 9, 2024
2 parents 8db3916 + c4b31f3 commit aad488d
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 aad488d

Please sign in to comment.