-
Notifications
You must be signed in to change notification settings - Fork 221
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 #444 from CaioCintra/github-workflows
standardizing github workflows and consoldiating frontend check
- Loading branch information
Showing
3 changed files
with
46 additions
and
67 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
71 changes: 42 additions & 29 deletions
71
...rkflows/pr_frontend_formatting_check.yaml → .github/workflows/pr_ci_frontend.yaml
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,29 +1,42 @@ | ||
name: pr_frontend_formatting_check | ||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
types: [opened, reopened, synchronize] | ||
workflow_run: | ||
workflows: [pr_maintainer_checklist] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
prettier: | ||
name: Run PR Frontend Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install Prettier | ||
run: npm install prettier | ||
|
||
- name: Run Prettier | ||
working-directory: ./frontend | ||
run: | | ||
npx prettier . --check --config ../.prettierrc --ignore-path ../.prettierignore | ||
name: pr_ci_frontend | ||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
types: [opened, reopened, synchronize] | ||
workflow_run: | ||
workflows: [pr_maintainer_checklist] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
frontend: | ||
name: Run PR Frontend Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Yarn Install | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: install | ||
dir: "frontend" | ||
|
||
- name: Install Prettier | ||
run: yarn add prettier | ||
|
||
- name: Run Prettier | ||
working-directory: ./frontend | ||
run: | | ||
yarn prettier . --check --config ../.prettierrc --ignore-path ../.prettierignore | ||
continue-on-error: true | ||
|
||
- name: Run Type Check | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: nuxi typecheck | ||
dir: "frontend" |
This file was deleted.
Oops, something went wrong.