2021-09-07 21:29:37 -05:00
|
|
|
name: Main
|
2021-07-27 12:13:51 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-01-09 21:04:00 -05:00
|
|
|
branches: [master]
|
2021-07-27 12:13:51 -05:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-04-22 04:13:21 -05:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2021-08-20 05:16:00 -05:00
|
|
|
- name: Setup Node and pnpm
|
2022-04-22 02:56:31 -05:00
|
|
|
uses: logto-io/actions-node-pnpm-run-steps@v1.1.0
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2021-09-07 21:29:37 -05:00
|
|
|
- name: Build
|
|
|
|
run: pnpm -- lerna run --stream build
|
|
|
|
|
2021-07-27 12:13:51 -05:00
|
|
|
- name: Lint
|
2021-09-07 21:29:37 -05:00
|
|
|
run: pnpm -- lerna run --parallel lint
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2022-02-16 02:04:34 -05:00
|
|
|
- name: Style Lint
|
|
|
|
run: pnpm -- lerna run --parallel stylelint
|
|
|
|
|
2021-09-07 21:29:37 -05:00
|
|
|
- name: Test
|
2022-01-09 21:04:00 -05:00
|
|
|
run: pnpm -- lerna run --parallel test:coverage
|
|
|
|
|
2022-02-28 22:05:25 -05:00
|
|
|
- name: Codecov
|
|
|
|
uses: codecov/codecov-action@v2
|
|
|
|
with:
|
|
|
|
flags: core
|
|
|
|
directory: ./packages/core
|