Skip to content

Commit f844e7e

Browse files
authored
ci: rename jobs (#63)
1 parent fe4a89c commit f844e7e

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
list-workspaces:
88
runs-on: ubuntu-latest
9-
name: List workspaces
9+
name: list workspaces
1010
outputs:
1111
matrix: ${{ steps.set-matrix.outputs.matrix }}
1212
steps:
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
27-
name: ${{ matrix.workspace }} size-limit
27+
name: ${{ matrix.workspace }} / size-limit
2828
steps:
2929
- name: Checkout the repository
3030
uses: actions/checkout@v4
@@ -43,29 +43,6 @@ jobs:
4343
github_token: ${{ secrets.GITHUB_TOKEN }}
4444
package_manager: pnpm
4545
directory: packages/${{ matrix.workspace }}/
46-
typings:
47-
runs-on: ubuntu-latest
48-
needs: list-workspaces
49-
strategy:
50-
matrix:
51-
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
52-
name: ${{ matrix.workspace }} typings
53-
steps:
54-
- name: Checkout the repository
55-
uses: actions/checkout@v4
56-
- name: Install pnpm
57-
uses: pnpm/action-setup@v2
58-
with:
59-
version: 8
60-
- name: Install Node.js
61-
uses: actions/setup-node@v4
62-
with:
63-
node-version: 16
64-
cache: 'pnpm'
65-
- name: Install dependencies
66-
run: pnpm install
67-
- name: Check typings
68-
run: pnpm --filter ${{ matrix.workspace }} test:types
6946
editorconfig:
7047
runs-on: ubuntu-latest
7148
name: editorconfig
Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Tests
22
on:
33
pull_request:
44
push:
@@ -7,7 +7,7 @@ on:
77
jobs:
88
list-workspaces:
99
runs-on: ubuntu-latest
10-
name: List workspaces
10+
name: list workspaces
1111
outputs:
1212
matrix: ${{ steps.set-matrix.outputs.matrix }}
1313
steps:
@@ -19,13 +19,36 @@ jobs:
1919
node-version: 16
2020
- id: set-matrix
2121
run: node -e "console.log('::set-output name=matrix::' + JSON.stringify(fs.readdirSync('packages')))"
22-
test:
22+
types:
2323
runs-on: ubuntu-latest
2424
needs: list-workspaces
2525
strategy:
2626
matrix:
2727
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
28-
name: ${{ matrix.workspace }} tests
28+
name: ${{ matrix.workspace }} / types
29+
steps:
30+
- name: Checkout the repository
31+
uses: actions/checkout@v4
32+
- name: Install pnpm
33+
uses: pnpm/action-setup@v2
34+
with:
35+
version: 8
36+
- name: Install Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 16
40+
cache: 'pnpm'
41+
- name: Install dependencies
42+
run: pnpm install
43+
- name: Check types
44+
run: pnpm --filter ${{ matrix.workspace }} test:types
45+
unit:
46+
runs-on: ubuntu-latest
47+
needs: list-workspaces
48+
strategy:
49+
matrix:
50+
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
51+
name: ${{ matrix.workspace }} / unit
2952
steps:
3053
- name: Checkout the repository
3154
uses: actions/checkout@v4

0 commit comments

Comments
 (0)