0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.github/workflows/main.yml
Gao Sun 71d4b25cd3
ci: separate main workflow jobs (#918)
* ci: separate main and lint

* ci: separate build and test

* ci: prepack before lint
2022-05-22 16:12:29 +08:00

58 lines
1 KiB
YAML

name: Main
on:
push:
branches: [master]
pull_request:
jobs:
main-build:
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: 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
run: pnpm ci:lint
- name: 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
run: pnpm ci:test
- name: Codecov
uses: codecov/codecov-action@v3
with:
flags: core
directory: ./packages/core