forked from CriticalMoments/CMSaasStarter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add format check command and CI (CriticalMoments#10)
* Add format check command and CI * Add formatting/prettier status badge
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Format Check | ||
|
||
on: [push] | ||
|
||
env: | ||
PUBLIC_SUPABASE_URL: 'https://fake_test_url.supabase.co' | ||
PUBLIC_SUPABASE_ANON_KEY: 'fake_anon_key' | ||
PRIVATE_SUPABASE_SERVICE_ROLE: 'fake_service_role' | ||
PRIVATE_STRIPE_API_KEY: 'fake_strip_api_key' | ||
PUBLIC_SITE_NAME: 'SaaS Starter Build Test' | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: NPM install | ||
run: npm install | ||
|
||
- name: Check Code Format | ||
run: npm run format_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters