-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #890 from Codeminer42/feat/husky
Feat/add husky
- Loading branch information
Showing
9 changed files
with
899 additions
and
264 deletions.
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This workflow will install a prebuilt Ruby version, install dependencies, and | ||
# run tests and linters. | ||
name: "CM42 Central CI" | ||
name: 'CM42 Central CI' | ||
on: | ||
push: | ||
branches: [master] | ||
|
@@ -14,7 +14,7 @@ jobs: | |
postgres: | ||
image: postgres:11-alpine | ||
ports: | ||
- "5432:5432" | ||
- '5432:5432' | ||
env: | ||
POSTGRES_DB: rails_test | ||
POSTGRES_USER: rails | ||
|
@@ -29,12 +29,12 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- "6379:6379" | ||
- '6379:6379' | ||
|
||
env: | ||
CI: true | ||
RAILS_ENV: test | ||
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | ||
DATABASE_URL: 'postgres://rails:password@localhost:5432/rails_test' | ||
MAILER_SENDER: [email protected] | ||
CLOUDINARY_URL: cloudinary://username:password@localhost | ||
|
||
|
@@ -68,8 +68,8 @@ jobs: | |
- name: Install Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.20.0 | ||
cache: "yarn" | ||
node-version: 18.12.0 | ||
cache: 'yarn' | ||
- name: Install JS dependencies | ||
run: yarn install | ||
# Add or replace test runners here | ||
|
@@ -83,7 +83,7 @@ jobs: | |
postgres: | ||
image: postgres:11-alpine | ||
ports: | ||
- "5432:5432" | ||
- '5432:5432' | ||
env: | ||
POSTGRES_DB: rails_test | ||
POSTGRES_USER: rails | ||
|
@@ -98,12 +98,12 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- "6379:6379" | ||
- '6379:6379' | ||
|
||
env: | ||
CI: true | ||
RAILS_ENV: test | ||
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | ||
DATABASE_URL: 'postgres://rails:password@localhost:5432/rails_test' | ||
MAILER_SENDER: [email protected] | ||
CLOUDINARY_URL: cloudinary://username:password@localhost | ||
|
||
|
@@ -121,8 +121,8 @@ jobs: | |
- name: Install Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.20.0 | ||
cache: "yarn" | ||
node-version: 18.12.0 | ||
cache: 'yarn' | ||
- name: Install JS dependencies | ||
run: yarn install | ||
|
||
|
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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
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
Oops, something went wrong.