Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split ci jobs for faster docs & template updates (#11294)
- Loading branch information
1 parent
274d1f3
commit d2ba095
Showing
3 changed files
with
74 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI Lint | ||
|
||
env: | ||
# 7 GiB by default on GitHub, setting to 6 GiB | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/* | ||
- feat/* | ||
- fix/* | ||
- perf/* | ||
- v1 | ||
- v2 | ||
- v2.* | ||
- v3.* | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
name: "Lint, Format, Typecheck, Docs" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2.2.4 | ||
|
||
- name: Set node version to 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Lint | ||
run: pnpm run lint | ||
|
||
- name: Check formatting | ||
run: pnpm prettier --check . | ||
|
||
- name: Typecheck | ||
run: pnpm run typecheck | ||
|
||
# Run unit test for create-vite only PRs | ||
- name: Test unit | ||
run: pnpm run test-unit | ||
|
||
- name: Test docs | ||
run: pnpm run test-docs | ||
|
||
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions | ||
- name: Check workflow files | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
./actionlint -color -shellcheck="" |
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