Skip to content

Commit d675bf0

Browse files
authored
Update tests.yml
1 parent 1148a0a commit d675bf0

File tree

1 file changed

+16
-42
lines changed

1 file changed

+16
-42
lines changed

.github/workflows/tests.yml

+16-42
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,26 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
node-version: [16.x, 18.x, 20.x]
13+
node-version: [18.x, 20.x, 22.x]
1414
fail-fast: false
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Run docker compose
21-
run: docker-compose up -d
22-
23-
- name: Install Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: ${{ matrix.node-version }}
21+
run: docker compose up -d
2722

2823
- name: Install pnpm
29-
uses: pnpm/action-setup@v2.2.2
24+
uses: pnpm/action-setup@v4
3025
with:
31-
version: 8
32-
run_install: false
33-
34-
- name: Get pnpm store directory
35-
id: pnpm-cache
36-
run: |
37-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
26+
version: 9
3827

39-
- name: Setup pnpm cache
40-
uses: actions/cache@v3
28+
- name: Install Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v4
4130
with:
42-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
43-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44-
restore-keys: |
45-
${{ runner.os }}-pnpm-store-
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'pnpm'
4633

4734
- name: Install dependencies
4835
run: pnpm i
@@ -58,31 +45,18 @@ jobs:
5845

5946
steps:
6047
- name: Checkout
61-
uses: actions/checkout@v3
62-
63-
- name: Install Node.js
64-
uses: actions/setup-node@v3
65-
with:
66-
node-version: 16.x
48+
uses: actions/checkout@v4
6749

6850
- name: Install pnpm
69-
uses: pnpm/action-setup@v2.2.2
51+
uses: pnpm/action-setup@v4
7052
with:
71-
version: 8
72-
run_install: false
53+
version: 9
7354

74-
- name: Get pnpm store directory
75-
id: pnpm-cache
76-
run: |
77-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
78-
79-
- name: Setup pnpm cache
80-
uses: actions/cache@v3
55+
- name: Install Node.js ${{ matrix.node-version }}
56+
uses: actions/setup-node@v4
8157
with:
82-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
83-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
84-
restore-keys: |
85-
${{ runner.os }}-pnpm-store-
58+
node-version: ${{ matrix.node-version }}
59+
cache: 'pnpm'
8660

8761
- name: Install dependencies
8862
run: pnpm i

0 commit comments

Comments
 (0)