Skip to content

Commit c00bc07

Browse files
committed
ci: re-setup
1 parent 15e450c commit c00bc07

3 files changed

Lines changed: 72 additions & 30 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ concurrency: ${{ github.ref }}
88

99
jobs:
1010
lint:
11+
strategy:
12+
matrix:
13+
node-version: [20]
14+
1115
name: Lint the code 🕵
1216
runs-on: ubuntu-latest
1317
steps:
@@ -16,13 +20,29 @@ jobs:
1620
with:
1721
fetch-depth: 0
1822

19-
- name: Monorepo install
20-
uses: ./.github/actions/setup
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'pnpm'
33+
34+
- name: Install dependencies
35+
shell: bash
36+
run: pnpm install --frozen-lockfile --prefer-offline
2137

2238
- name: Lint the code 🕵
2339
run: pnpm all:lint
2440

2541
test:
42+
strategy:
43+
matrix:
44+
node-version: [20]
45+
2646
name: Run unit tests 🔬
2747
runs-on: ubuntu-latest
2848
steps:
@@ -31,13 +51,29 @@ jobs:
3151
with:
3252
fetch-depth: 0
3353

34-
- name: Monorepo install
35-
uses: ./.github/actions/setup
54+
- name: Install pnpm
55+
uses: pnpm/action-setup@v4
56+
with:
57+
version: 10
58+
59+
- name: Use Node.js ${{ matrix.node-version }}
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: ${{ matrix.node-version }}
63+
cache: 'pnpm'
64+
65+
- name: Install dependencies
66+
shell: bash
67+
run: pnpm install --frozen-lockfile --prefer-offline
3668

3769
- name: Run unit tests 🔬
3870
run: pnpm all:test -- --ci --verbose
3971

4072
build:
73+
strategy:
74+
matrix:
75+
node-version: [20]
76+
4177
name: Build code 🛠
4278
runs-on: ubuntu-latest
4379
steps:
@@ -46,8 +82,20 @@ jobs:
4682
with:
4783
fetch-depth: 0
4884

49-
- name: Monorepo install
50-
uses: ./.github/actions/setup
85+
- name: Install pnpm
86+
uses: pnpm/action-setup@v4
87+
with:
88+
version: 10
89+
90+
- name: Use Node.js ${{ matrix.node-version }}
91+
uses: actions/setup-node@v4
92+
with:
93+
node-version: ${{ matrix.node-version }}
94+
cache: 'pnpm'
95+
96+
- name: Install dependencies
97+
shell: bash
98+
run: pnpm install --frozen-lockfile --prefer-offline
5199

52100
- name: Build code 🛠
53101
run: pnpm all:build

.github/workflows/release.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515

1616
jobs:
1717
release:
18+
strategy:
19+
matrix:
20+
node-version: [20]
21+
1822
if: (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/release') || (github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'true')
1923
name: Release new version 🛠
2024
runs-on: ubuntu-latest
@@ -31,8 +35,20 @@ jobs:
3135
fetch-depth: 0
3236
persist-credentials: false
3337

34-
- name: Monorepo install
35-
uses: ./.github/actions/setup
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 10
42+
43+
- name: Use Node.js ${{ matrix.node-version }}
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: ${{ matrix.node-version }}
47+
cache: 'pnpm'
48+
49+
- name: Install dependencies
50+
shell: bash
51+
run: pnpm install --frozen-lockfile --prefer-offline
3652

3753
- name: Release new version 🛠
3854
run: pnpm exec nx release {{ github.event.inputs.version || '' }} --verbose --dryRun=${{ github.event.inputs.dryRun }}

0 commit comments

Comments
 (0)