mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
4df749e142
* refactor(ci): add concurrency * fix(ci): concurrency group
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
name: Main
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: main-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
main-build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node and pnpm
|
|
uses: silverhand-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: silverhand-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: silverhand-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
|