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

104 lines
2 KiB
YAML
Raw Normal View History

name: Main
on:
2022-06-22 05:55:58 -05:00
push:
2022-07-01 07:33:08 -05:00
branches:
- master
- 'push-action/**'
2022-06-27 03:38:39 -05:00
pull_request:
concurrency:
2022-07-01 08:33:25 -05:00
group: main-${{ github.head_ref || github.run_id }}
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@v2
- name: Build
2022-05-17 21:58:01 -05:00
run: pnpm ci:build
main-lint:
2022-12-12 00:43:23 -05:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v2
- name: Prepack
run: pnpm prepack
- name: Lint
2022-05-17 21:58:01 -05:00
run: pnpm ci:lint
- name: Stylelint
2022-05-17 21:58:01 -05:00
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@v2
2022-12-12 08:52:17 -05:00
- name: Build for test
run: pnpm -r build:test
- name: Test
2022-05-17 21:58:01 -05:00
run: pnpm ci:test
- name: Codecov core
uses: codecov/codecov-action@v3
with:
flags: core
directory: ./packages/core
- name: Codecov ui
uses: codecov/codecov-action@v3
with:
flags: ui
directory: ./packages/ui
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