Skip to content

Commit 123ff1e

Browse files
committed
Update CI
1 parent 7c2945b commit 123ff1e

File tree

30 files changed

+7806
-23152
lines changed

30 files changed

+7806
-23152
lines changed

.github/workflows/commit-check.yml

+28-7
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,42 @@ on:
1111
- synchronize
1212

1313
jobs:
14-
check:
15-
name: "commit-check"
14+
test:
1615
timeout-minutes: 15
17-
runs-on: ubuntu-20.04
16+
runs-on: ${{ matrix.os }}
1817
strategy:
1918
matrix:
2019
node-version: [18]
20+
os: [ubuntu-latest]
2121
steps:
2222
- uses: actions/checkout@v3
2323
with:
2424
fetch-depth: 0
2525
- uses: actions/setup-node@v3
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
cache: "npm"
29-
- run: npm ci
30-
- run: npm run build
31-
- run: npm run commit-check
28+
29+
- uses: pnpm/action-setup@v2
30+
name: Install pnpm
31+
with:
32+
version: 8
33+
run_install: false
34+
35+
- name: Get pnpm store directory
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- uses: actions/cache@v3
41+
name: Setup pnpm cache
42+
with:
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
47+
48+
- name: Install dependencies
49+
run: pnpm install
50+
51+
- run: pnpm run build
52+
- run: pnpm run commit-check

.github/workflows/lint.yml

+28-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,40 @@ on:
1111
- synchronize
1212

1313
jobs:
14-
lint:
14+
test:
1515
timeout-minutes: 15
16-
runs-on: ubuntu-20.04
16+
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
node-version: [18]
20+
os: [ubuntu-latest]
2021
steps:
2122
- uses: actions/checkout@v3
2223
- uses: actions/setup-node@v3
2324
with:
2425
node-version: ${{ matrix.node-version }}
25-
cache: "npm"
26-
- run: npm ci
27-
- run: npm run lint
26+
27+
- uses: pnpm/action-setup@v2
28+
name: Install pnpm
29+
with:
30+
version: 8
31+
run_install: false
32+
33+
- name: Get pnpm store directory
34+
shell: bash
35+
run: |
36+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37+
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ env.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
45+
46+
- name: Install dependencies
47+
run: pnpm install
48+
49+
- run: pnpm run build
50+
- run: pnpm run lint

.github/workflows/release.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,30 @@ jobs:
1919
node-version: ${{ matrix.node-version }}
2020
registry-url: "https://registry.npmjs.org"
2121
cache: "npm"
22-
- run: npm ci
23-
- run: npm run build
22+
23+
- uses: pnpm/action-setup@v2
24+
name: Install pnpm
25+
with:
26+
version: 8
27+
run_install: false
28+
29+
- name: Get pnpm store directory
30+
shell: bash
31+
run: |
32+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
33+
34+
- uses: actions/cache@v3
35+
name: Setup pnpm cache
36+
with:
37+
path: ${{ env.STORE_PATH }}
38+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39+
restore-keys: |
40+
${{ runner.os }}-pnpm-store-
41+
42+
- name: Install dependencies
43+
run: pnpm install
44+
45+
- run: pnpm run build
2446

2547
- uses: lewagon/wait-on-check-action@v1.3.1
2648
with:

.github/workflows/test.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,33 @@ jobs:
1818
matrix:
1919
node-version: [18]
2020
os: [ubuntu-latest, windows-latest, macos-latest]
21-
2221
steps:
2322
- uses: actions/checkout@v3
2423
- uses: actions/setup-node@v3
2524
with:
2625
node-version: ${{ matrix.node-version }}
27-
cache: "npm"
28-
- run: npm ci
29-
- run: npm run build
30-
- run: npm run test
26+
27+
- uses: pnpm/action-setup@v2
28+
name: Install pnpm
29+
with:
30+
version: 8
31+
run_install: false
32+
33+
- name: Get pnpm store directory
34+
shell: bash
35+
run: |
36+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37+
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ env.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
45+
46+
- name: Install dependencies
47+
run: pnpm install
48+
49+
- run: pnpm run build
50+
- run: pnpm test

.github/workflows/type-check.yml

+28-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,40 @@ on:
1111
- synchronize
1212

1313
jobs:
14-
check:
14+
test:
1515
timeout-minutes: 15
16-
runs-on: ubuntu-20.04
16+
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
node-version: [18]
20+
os: [ubuntu-latest]
2021
steps:
2122
- uses: actions/checkout@v3
2223
- uses: actions/setup-node@v3
2324
with:
2425
node-version: ${{ matrix.node-version }}
25-
cache: "npm"
26-
- run: npm ci
27-
- run: npm run build
28-
- run: npm run type-check
26+
27+
- uses: pnpm/action-setup@v2
28+
name: Install pnpm
29+
with:
30+
version: 8
31+
run_install: false
32+
33+
- name: Get pnpm store directory
34+
shell: bash
35+
run: |
36+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37+
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ env.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
45+
46+
- name: Install dependencies
47+
run: pnpm install
48+
49+
- run: pnpm run build
50+
- run: pnpm run type-check

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

0 commit comments

Comments
 (0)