Skip to content

Commit 839b29c

Browse files
authored
Merge pull request #149 from volta-cli/rwjblue/use-checkout-v4
Use actions/checkout@v4
2 parents 2afcc67 + 57e4af6 commit 839b29c

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

.github/workflows/CI.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
name: 'CI'
1+
name: "CI"
22
on:
33
pull_request:
44
push:
55
branches:
66
- master
7-
- 'releases/*'
7+
- "releases/*"
88

99
defaults:
1010
run:
1111
shell: bash
1212

1313
env:
14-
NODE_OPTIONS: '--unhandled-rejections=strict'
14+
NODE_OPTIONS: "--unhandled-rejections=strict"
1515

1616
concurrency:
1717
group: ci-${{ github.head_ref || github.ref }}
1818
cancel-in-progress: true
1919

2020
jobs:
2121
test:
22-
runs-on: '${{ matrix.os }}-latest'
22+
runs-on: "${{ matrix.os }}-latest"
2323

2424
strategy:
2525
matrix:
2626
os: [ubuntu, macOS, windows]
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030

3131
- run: npm ci
3232
- run: npm run lint
3333
- run: npm run build
3434
- run: npm test
3535

3636
test-specific-volta:
37-
runs-on: '${{ matrix.os }}-latest'
37+
runs-on: "${{ matrix.os }}-latest"
3838

3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
volta-version: ['1.0.0', '1.0.8', '1.1.0']
42+
volta-version: ["1.0.0", "1.0.8", "1.1.0"]
4343
os: [ubuntu, macOS, windows]
4444
exclude:
4545
- os: ubuntu
46-
volta-version: '1.0.0'
46+
volta-version: "1.0.0"
4747

4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050
with:
5151
path: action
5252
- run: npm ci
@@ -64,14 +64,14 @@ jobs:
6464
- run: ./action/tests/check-version.sh 'yarn' '1.19.0'
6565

6666
test-no-options:
67-
runs-on: '${{ matrix.os }}-latest'
67+
runs-on: "${{ matrix.os }}-latest"
6868

6969
strategy:
7070
matrix:
7171
os: [ubuntu, macOS, windows]
7272

7373
steps:
74-
- uses: actions/checkout@v3
74+
- uses: actions/checkout@v4
7575
with:
7676
path: action
7777

@@ -89,18 +89,18 @@ jobs:
8989
- run: ./action/tests/check-version.sh 'yarn' '1.19.1'
9090

9191
test-specified-node-npm-yarn-overrides-pinned-versions:
92-
runs-on: '${{ matrix.os }}-latest'
92+
runs-on: "${{ matrix.os }}-latest"
9393

9494
strategy:
9595
matrix:
9696
os: [ubuntu, macOS, windows]
9797

9898
steps:
99-
- uses: actions/checkout@v3
99+
- uses: actions/checkout@v4
100100
with:
101-
ref: 'branch-for-testing-overriding-pinned-projects-in-ci'
101+
ref: "branch-for-testing-overriding-pinned-projects-in-ci"
102102

103-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
104104
with:
105105
path: action
106106

@@ -121,14 +121,14 @@ jobs:
121121
- run: ./action/tests/check-version.sh 'yarn' '1.22.0'
122122

123123
test-specific-volta-node-npm-yarn:
124-
runs-on: '${{ matrix.os }}-latest'
124+
runs-on: "${{ matrix.os }}-latest"
125125

126126
strategy:
127127
matrix:
128128
os: [ubuntu, macOS, windows]
129129

130130
steps:
131-
- uses: actions/checkout@v3
131+
- uses: actions/checkout@v4
132132
with:
133133
path: action
134134
- run: npm ci
@@ -149,15 +149,15 @@ jobs:
149149
- run: ./action/tests/check-version.sh 'yarn' '1.22.0'
150150

151151
test-specified-registry-url:
152-
runs-on: '${{ matrix.os }}-latest'
152+
runs-on: "${{ matrix.os }}-latest"
153153

154154
strategy:
155155
fail-fast: false
156156
matrix:
157157
os: [ubuntu, macOS, windows]
158158

159159
steps:
160-
- uses: actions/checkout@v3
160+
- uses: actions/checkout@v4
161161
with:
162162
path: action
163163

@@ -167,7 +167,7 @@ jobs:
167167
working-directory: ./action
168168
- uses: ./action
169169
with:
170-
registry-url: 'https://some.path.here.com/lol/'
170+
registry-url: "https://some.path.here.com/lol/"
171171

172172
- run: ./action/tests/log-info.sh
173173
- run: ./action/tests/check-version.sh 'volta' 'current'
@@ -177,10 +177,10 @@ jobs:
177177
- run: ./action/tests/check-registry.sh 'https://some.path.here.com/lol/'
178178

179179
test-specific-variant:
180-
runs-on: 'ubuntu-latest'
180+
runs-on: "ubuntu-latest"
181181

182182
steps:
183-
- uses: actions/checkout@v3
183+
- uses: actions/checkout@v4
184184
with:
185185
path: action
186186

@@ -200,17 +200,17 @@ jobs:
200200
- run: ./action/tests/check-version.sh 'yarn' '1.19.1'
201201

202202
test-js-project-in-subdir-no-options:
203-
runs-on: 'ubuntu-latest'
203+
runs-on: "ubuntu-latest"
204204

205205
steps:
206-
- uses: actions/checkout@v3
206+
- uses: actions/checkout@v4
207207
with:
208208
path: action
209209

210-
- uses: actions/checkout@v3
210+
- uses: actions/checkout@v4
211211
with:
212-
ref: 'branch-for-testing-overriding-pinned-projects-in-ci'
213-
path: 'js-stuff'
212+
ref: "branch-for-testing-overriding-pinned-projects-in-ci"
213+
path: "js-stuff"
214214

215215
- run: npm ci
216216
working-directory: ./action
@@ -226,25 +226,25 @@ jobs:
226226
working-directory: ./js-stuff
227227

228228
test-js-project-in-subdir-with-overrides:
229-
runs-on: 'ubuntu-latest'
229+
runs-on: "ubuntu-latest"
230230

231231
steps:
232-
- uses: actions/checkout@v3
232+
- uses: actions/checkout@v4
233233
with:
234234
path: action
235235

236-
- uses: actions/checkout@v3
236+
- uses: actions/checkout@v4
237237
with:
238-
ref: 'branch-for-testing-overriding-pinned-projects-in-ci'
239-
path: 'js-stuff'
238+
ref: "branch-for-testing-overriding-pinned-projects-in-ci"
239+
path: "js-stuff"
240240

241241
- run: npm ci
242242
working-directory: ./action
243243
- run: npm run build
244244
working-directory: ./action
245245
- uses: ./action
246246
with:
247-
package-json-path: 'js-stuff/package.json'
247+
package-json-path: "js-stuff/package.json"
248248
node-version: 12.14.0
249249
npm-version: 7.5.2
250250
yarn-version: 1.22.0

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Basic (when the project's `package.json` has a `volta` property with `node` and/
3434

3535
```yaml
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- uses: volta-cli/action@v4
3939
- run: npm install
4040
- run: npm test
@@ -44,7 +44,7 @@ Manually specifying node and/or yarn versions (e.g. to test a project without `v
4444

4545
```yaml
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- uses: volta-cli/action@v4
4949
with:
5050
node-version: 18.x
@@ -62,7 +62,7 @@ strategy:
6262
node-version: ['^14.10', '16', '18']
6363
6464
steps:
65-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@v4
6666
- uses: volta-cli/action@v4
6767
with:
6868
node-version: ${{ matrix.node-version }}
@@ -79,7 +79,7 @@ strategy:
7979
node-version: ['^8.12', '10', '12']
8080
8181
steps:
82-
- uses: actions/checkout@v3
82+
- uses: actions/checkout@v4
8383
- uses: volta-cli/action@v4
8484
with:
8585
node-version: ${{ matrix.node-version }}
@@ -93,7 +93,7 @@ In some cases, you may know the particular variant of the installer that you wan
9393

9494
```yaml
9595
steps:
96-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@v4
9797
- uses: volta-cli/action@v4
9898
with:
9999
variant: 'linux-openssl-rhel'

0 commit comments

Comments
 (0)