-
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.
Feature: new eslint and github action CI (#5)
* feat: new eslint and github action CI * chore: update lock file * fix: typo on CI * feat: update ci env * chore: fix typo --------- Co-authored-by: nnh53 <“nnh53.work@gmail.com”>
- Loading branch information
Showing
16 changed files
with
10,216 additions
and
16,892 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# production | ||
PRODUCTION_BACKEND_URL="https://backend.onrender.com" | ||
VITE_PRODUCTION_BACKEND_URL="https://backend.onrender.com" | ||
VITE_DEVELOPEMENT_GOOGLE_OAUTH_URL = 'http://localhost:4000/oauth/google' | ||
VITE_PRODUCTION_GOOGLE_OAUTH_URL = 'http://rendebe/oauth/google' | ||
|
||
# development | ||
DEVELOPMENT_BACKEND_URL="http://localhost:3000" | ||
VITE_DEVELOPMENT_BACKEND_URL="http://localhost:3000" | ||
|
||
VITE_DEVELOPEMENT_FACEBOOK_OAUTH_URL = 'http://localhost:4000/oauth/facebook' | ||
VITE_PRODUCTION_FACEBOOK_OAUTH_URL = 'http://renderbe/oauth/facebook' | ||
|
||
VITE_PRODUCTION_BACKEND_URL = 'http://renderbe.com' | ||
VITE_DEVELOPMENT_BACKEND_URL = 'http://localhost:4000' |
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,2 +1,3 @@ | ||
node_modules | ||
dist | ||
public |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Run: Check CI on PR | ||
name: Check CI on PR | ||
|
||
on: | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
lint_PR: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check pnpm standalone | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/setup-pnpm/node_modules/.bin/pnpm | ||
key: ${{ runner.os }}-pnpm-standalone | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-standalone | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
standalone: false | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
# - name: which pnpm | ||
# shell: bash | ||
# run: | | ||
# which pnpm | ||
# env: | ||
# TEST_TEST: ${{ steps.pnpmahihi.outputs.bin_dest }} | ||
|
||
# - name: echo echo $PNPM_HOME | ||
# shell: bash | ||
# run: | | ||
# echo $PNPM_HOME | ||
|
||
# - name: echo pnpm store directory | ||
# shell: bash | ||
# run: | | ||
# pnpm store path | ||
|
||
# - name: Get pnpm store directory | ||
# shell: bash | ||
# run: | | ||
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
|
||
- name: Setup pnpm node_module cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/setup-pnpm/node_modules/.bin/store/v3 | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Lint | ||
run: pnpm run prettier:check && pnpm run eslint:check-allow-warning && pnpm run check-types |
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,24 +1,8 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
node_modules | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.env | ||
deploy | ||
.firebase | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
.idea |
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,2 +1,3 @@ | ||
yarn run lint-staged | ||
yarn run lint | ||
echo "Running pre-commit hook" | ||
pnpm run lint-staged | ||
pnpm run lint |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ coverage | |
build | ||
dist | ||
node_modules | ||
husky | ||
.husky | ||
public |
Oops, something went wrong.