2021-09-08 10:29:37 +08:00
|
|
|
name: Main
|
2021-07-28 01:13:51 +08:00
|
|
|
|
|
|
|
on:
|
2022-06-22 18:55:58 +08:00
|
|
|
push:
|
2022-07-01 20:33:08 +08:00
|
|
|
branches:
|
|
|
|
- master
|
2022-07-02 01:30:01 +08:00
|
|
|
- 'push-action/**'
|
2022-06-27 16:38:39 +08:00
|
|
|
pull_request:
|
2021-07-28 01:13:51 +08:00
|
|
|
|
2022-06-22 10:11:54 +08:00
|
|
|
concurrency:
|
2022-07-01 21:33:25 +08:00
|
|
|
group: main-${{ github.head_ref || github.run_id }}
|
2022-06-17 23:58:29 +08:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-07-28 01:13:51 +08:00
|
|
|
jobs:
|
2022-05-22 16:12:29 +08:00
|
|
|
main-build:
|
2021-07-28 01:13:51 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-04-22 09:13:21 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-28 01:13:51 +08:00
|
|
|
|
2021-08-20 18:16:00 +08:00
|
|
|
- name: Setup Node and pnpm
|
2022-07-20 06:42:42 +08:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.3
|
2021-07-28 01:13:51 +08:00
|
|
|
|
2021-09-08 10:29:37 +08:00
|
|
|
- name: Build
|
2022-05-18 10:58:01 +08:00
|
|
|
run: pnpm ci:build
|
2021-09-08 10:29:37 +08:00
|
|
|
|
2022-05-22 16:12:29 +08:00
|
|
|
main-lint:
|
2022-07-22 14:18:05 +08:00
|
|
|
# avoid out of memory issue since macOS has bigger memory
|
|
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
|
|
|
|
runs-on: macos-latest
|
2022-05-22 16:12:29 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2022-07-20 06:42:42 +08:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.3
|
2022-05-22 16:12:29 +08:00
|
|
|
|
|
|
|
- name: Prepack
|
|
|
|
run: pnpm prepack
|
|
|
|
|
2021-07-28 01:13:51 +08:00
|
|
|
- name: Lint
|
2022-05-18 10:58:01 +08:00
|
|
|
run: pnpm ci:lint
|
2021-07-28 01:13:51 +08:00
|
|
|
|
2022-05-17 13:20:17 +00:00
|
|
|
- name: Stylelint
|
2022-05-18 10:58:01 +08:00
|
|
|
run: pnpm ci:stylelint
|
2022-02-16 15:04:34 +08:00
|
|
|
|
2022-05-22 16:12:29 +08:00
|
|
|
main-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2022-07-20 06:42:42 +08:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.3
|
2022-05-22 16:12:29 +08:00
|
|
|
|
|
|
|
- name: Prepack
|
|
|
|
run: pnpm prepack
|
|
|
|
|
2021-09-08 10:29:37 +08:00
|
|
|
- name: Test
|
2022-05-18 10:58:01 +08:00
|
|
|
run: pnpm ci:test
|
2022-01-10 10:04:00 +08:00
|
|
|
|
2022-06-22 10:11:54 +08:00
|
|
|
- name: Codecov core
|
2022-04-22 09:40:07 +00:00
|
|
|
uses: codecov/codecov-action@v3
|
2022-03-01 11:05:25 +08:00
|
|
|
with:
|
|
|
|
flags: core
|
|
|
|
directory: ./packages/core
|
2022-06-22 10:11:54 +08:00
|
|
|
|
|
|
|
- name: Codecov ui
|
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
flags: ui
|
|
|
|
directory: ./packages/ui
|