2021-09-07 21:29:37 -05:00
|
|
|
name: Main
|
2021-07-27 12:13:51 -05:00
|
|
|
|
|
|
|
on:
|
2022-06-22 05:55:58 -05:00
|
|
|
push:
|
2022-07-01 07:33:08 -05:00
|
|
|
branches:
|
|
|
|
- master
|
2022-07-01 12:30:01 -05:00
|
|
|
- 'push-action/**'
|
2022-06-27 03:38:39 -05:00
|
|
|
pull_request:
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2022-06-21 21:11:54 -05:00
|
|
|
concurrency:
|
2022-07-01 08:33:25 -05:00
|
|
|
group: main-${{ github.head_ref || github.run_id }}
|
2022-06-17 10:58:29 -05:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-07-27 12:13:51 -05:00
|
|
|
jobs:
|
2022-05-22 03:12:29 -05:00
|
|
|
main-build:
|
2021-07-27 12:13:51 -05:00
|
|
|
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-10-16 23:07:50 -05:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2021-09-07 21:29:37 -05:00
|
|
|
- name: Build
|
2022-05-17 21:58:01 -05:00
|
|
|
run: pnpm ci:build
|
2021-09-07 21:29:37 -05:00
|
|
|
|
2022-05-22 03:12:29 -05:00
|
|
|
main-lint:
|
2022-12-12 00:43:23 -05:00
|
|
|
runs-on: ubuntu-latest
|
2022-05-22 03:12:29 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2022-10-16 23:07:50 -05:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
2022-05-22 03:12:29 -05:00
|
|
|
|
|
|
|
- name: Prepack
|
|
|
|
run: pnpm prepack
|
|
|
|
|
2021-07-27 12:13:51 -05:00
|
|
|
- name: Lint
|
2022-05-17 21:58:01 -05:00
|
|
|
run: pnpm ci:lint
|
2021-07-27 12:13:51 -05:00
|
|
|
|
2022-05-17 08:20:17 -05:00
|
|
|
- name: Stylelint
|
2022-05-17 21:58:01 -05:00
|
|
|
run: pnpm ci:stylelint
|
2022-02-16 02:04:34 -05:00
|
|
|
|
2022-05-22 03:12:29 -05:00
|
|
|
main-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2022-10-16 23:07:50 -05:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
2022-05-22 03:12:29 -05:00
|
|
|
|
2022-12-12 08:52:17 -05:00
|
|
|
- name: Build for test
|
|
|
|
run: pnpm -r build:test
|
2022-05-22 03:12:29 -05:00
|
|
|
|
2021-09-07 21:29:37 -05:00
|
|
|
- name: Test
|
2022-05-17 21:58:01 -05:00
|
|
|
run: pnpm ci:test
|
2022-01-09 21:04:00 -05:00
|
|
|
|
2022-06-21 21:11:54 -05:00
|
|
|
- name: Codecov core
|
2022-04-22 04:40:07 -05:00
|
|
|
uses: codecov/codecov-action@v3
|
2022-02-28 22:05:25 -05:00
|
|
|
with:
|
|
|
|
flags: core
|
|
|
|
directory: ./packages/core
|
2022-06-21 21:11:54 -05:00
|
|
|
|
|
|
|
- name: Codecov ui
|
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
flags: ui
|
|
|
|
directory: ./packages/ui
|
2022-10-18 22:35:39 -05:00
|
|
|
|
|
|
|
main-dockerize:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: .
|
2022-12-29 21:50:56 -05:00
|
|
|
|
|
|
|
main-alteration-sequence:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm prepack
|
|
|
|
|
|
|
|
- name: Check alteration sequence
|
|
|
|
run: node .scripts/check-alterations-sequence.js
|