Skip to content

Commit 10462ae

Browse files
committed
minor ci improvements
1 parent 449f976 commit 10462ae

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ on:
1414
jobs:
1515
lint:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 5
1718
steps:
1819
- uses: actions/checkout@v4
1920

20-
- id: nvm
21-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
22-
23-
- uses: actions/setup-node@v3
21+
- uses: actions/setup-node@v4
2422
with:
25-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
23+
node-version-file: .nvmrc
2624
cache: yarn
2725

2826
- run: yarn install --frozen-lockfile
@@ -34,23 +32,22 @@ jobs:
3432
3533
test:
3634
runs-on: ubuntu-latest
35+
timeout-minutes: 5
3736
steps:
3837
- uses: actions/checkout@v4
3938
with:
4039
fetch-depth: 0
4140

42-
- id: nvm
43-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
44-
45-
- uses: actions/setup-node@v3
41+
- uses: actions/setup-node@v4
4642
with:
47-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
43+
node-version-file: .nvmrc
4844
cache: yarn
4945

46+
5047
- name: Setup Go environment
51-
uses: actions/setup-go@v4
48+
uses: actions/setup-go@v5
5249
with:
53-
go-version: '^1.21.1'
50+
go-version: stable
5451

5552
- run: yarn install --frozen-lockfile
5653

@@ -69,24 +66,22 @@ jobs:
6966

7067
build:
7168
runs-on: ubuntu-latest
69+
timeout-minutes: 5
7270
steps:
7371
- uses: actions/checkout@v4
7472

7573
- id: extract_ref
7674
run: echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/})
7775

78-
- id: nvm
79-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
80-
81-
- uses: actions/setup-node@v3
76+
- uses: actions/setup-node@v4
8277
with:
83-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
78+
node-version-file: .nvmrc
8479
cache: yarn
8580

8681
- name: Setup Go environment
87-
uses: actions/setup-go@v4
82+
uses: actions/setup-go@v5
8883
with:
89-
go-version: '^1.21.1'
84+
go-version: stable
9085

9186
- run: yarn install --frozen-lockfile
9287

@@ -106,6 +101,7 @@ jobs:
106101
needs: [lint, test, build]
107102
if: startsWith(github.ref, 'refs/tags/')
108103
runs-on: ubuntu-latest
104+
timeout-minutes: 5
109105
steps:
110106
- uses: actions/checkout@v4
111107

0 commit comments

Comments
 (0)