Skip to content

Commit

Permalink
am I merging?
Browse files Browse the repository at this point in the history
  • Loading branch information
MistahSanta committed Aug 22, 2024
2 parents f01ad79 + fd0d09e commit c4a5b6e
Show file tree
Hide file tree
Showing 83 changed files with 1,977 additions and 953 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/generateCheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if [ $status == 0 ]; then
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY
exit 0
else
echo "## Formatting Check Failed 😅" >>$GITHUB_STEP_SUMMARY
echo "Please run prettier using \`npx prettier . --write\` in order to format your code" >>$GITHUB_STEP_SUMMARY
echo "### Files with bad formatting:" >>$GITHUB_STEP_SUMMARY
for file in $files; do
echo "- $file" >>$GITHUB_STEP_SUMMARY
echo "::error file=$file::$file not formatted correctly"
done
exit 1
fi
24 changes: 24 additions & 0 deletions .github/workflows/prettierCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Formatting Check
run-name: Running formatting check
on: [push]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Run npm install
run: |
mv package.json package.json.bak
npm i --no-save prettier prettier-plugin-tailwindcss
mv package.json.bak package.json
- name: Run prettier
run: |
files=`npx prettier . -l` || st=$? && st=$?
echo status=`echo $st`>>"$GITHUB_ENV"
echo files=`echo $files`>> "$GITHUB_ENV"
- name: generate errors/summary
run: .github/workflows/generateCheck.sh
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/server/db/migrations/*
26 changes: 19 additions & 7 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ await import('./src/env.mjs');
/** @type {import("next").NextConfig} */
const config = {
images: {
domains: [
'lh3.googleusercontent.com',
'cdn.discordapp.com',
'jupiter.nlmc.workers.dev',
remotePatterns: [
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
pathname: '**',
port: '',
},
{
protocol: 'https',
hostname: 'cdn.discordapp.com',
pathname: '**',
port: '',
},
{
protocol: 'https',
hostname: 'jupiter.nlmc.workers.dev',
pathname: '**',
port: '',
},
],
},
experimental: {
serverActions: true,
},
};

export default config;
Loading

0 comments on commit c4a5b6e

Please sign in to comment.