forked from logto-io/logto
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (41 loc) · 1.02 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Main
on:
push:
branches: [master]
pull_request:
jobs:
main-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
uses: logto-io/[email protected]
- name: Build
run: pnpm ci:build
main-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
uses: logto-io/[email protected]
- 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: logto-io/[email protected]
- name: Prepack
run: pnpm prepack
- name: Test
run: pnpm ci:test
- name: Codecov
uses: codecov/codecov-action@v3
with:
flags: core
directory: ./packages/core