mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
ci: separate main workflow jobs (#918)
* ci: separate main and lint * ci: separate build and test * ci: prepack before lint
This commit is contained in:
parent
fe99928a41
commit
71d4b25cd3
1 changed files with 25 additions and 1 deletions
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -18,12 +18,36 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm ci:build
|
run: pnpm ci:build
|
||||||
|
|
||||||
|
main-lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node and pnpm
|
||||||
|
uses: logto-io/actions-node-pnpm-run-steps@v1.2.2
|
||||||
|
|
||||||
|
- name: Prepack
|
||||||
|
run: pnpm prepack
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pnpm ci:lint
|
run: pnpm ci:lint
|
||||||
|
|
||||||
- name: Stylelint
|
- name: Stylelint
|
||||||
run: pnpm ci:stylelint
|
run: pnpm ci:stylelint
|
||||||
|
|
||||||
|
main-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node and pnpm
|
||||||
|
uses: logto-io/actions-node-pnpm-run-steps@v1.2.2
|
||||||
|
|
||||||
|
- name: Prepack
|
||||||
|
run: pnpm prepack
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm ci:test
|
run: pnpm ci:test
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue