forked from BesLogic/releaf-canopeum
-
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.
Infra/setup ci and tooling frontend (BesLogic#51)
- Loading branch information
1 parent
2cf09b7
commit d58b961
Showing
30 changed files
with
8,902 additions
and
3,377 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: canopeum_frontend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "canopeum_frontend/**" | ||
- ".github/workflows/canopeum_frontend.yml" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "canopeum_frontend/**" | ||
- ".github/workflows/canopeum_frontend.yml" | ||
|
||
jobs: | ||
Lint: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: canopeum_frontend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm ci | ||
- run: npm run lint | ||
Build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: canopeum_frontend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm ci | ||
- run: npm run build |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ repos: | |
- id: check-toml | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
# You can run this locally with `ruff format && ruff check` | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.4 # must match canopeum_backend/requirements-dev.txt | ||
hooks: | ||
|
@@ -20,6 +21,25 @@ repos: | |
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format | ||
# You can run this locally with `npm run lint:fix` | ||
# NOTE: exceeds tier max size 250MiB: 289.9MiB | ||
# - repo: https://github.com/pre-commit/mirrors-eslint | ||
# rev: v8.56.0 | ||
# hooks: | ||
# - id: eslint | ||
# files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx | ||
# types: [file] | ||
# additional_dependencies: [ | ||
# # Keep these in sync with canopeum_backend/package.json | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# "[email protected]", | ||
# ] | ||
|
||
ci: | ||
autoupdate_schedule: quarterly |
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.