Skip to content

Commit

Permalink
Merge pull request #261 from UTDNebula/add-format-script
Browse files Browse the repository at this point in the history
Add format script
  • Loading branch information
nl32 authored Nov 19, 2024
2 parents 9606371 + 9ba3788 commit b2597b5
Show file tree
Hide file tree
Showing 6 changed files with 499 additions and 1,356 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/generateCheck.sh

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and Formatting Check

on: push

jobs:
main:
name: Run ESLint + Prettier
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Run npm install
run: npm ci

- name: Set up test environment file
run: echo "GOOGLE_CLIENT_ID=dummy" > .env.local && echo "GOOGLE_CLIENT_SECRET=dummy" >> .env.local && echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local && echo "NEXTAUTH_SECRET=dummy" >> .env.local && echo "DATABASE_URL=dummy" >> .env.local && echo "DISCORD_CLIENT_ID=dummy" >> .env.local && echo "DISCORD_CLIENT_SECRET=dummy" >> .env.local

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

- name: Run Prettier
run: npm run format:check
16 changes: 0 additions & 16 deletions .github/workflows/prettierCheck.yml

This file was deleted.

6 changes: 0 additions & 6 deletions commitlint.config.js

This file was deleted.

Loading

0 comments on commit b2597b5

Please sign in to comment.