Skip to content

Commit 2820343

Browse files
committed
Update workflow files to install Go via composite action
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 488b563 commit 2820343

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

.github/workflows/build-test-images.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ jobs:
4141
working-directory: src/github.com/containerd/containerd
4242

4343
steps:
44-
- uses: actions/setup-go@v5
45-
with:
46-
go-version: "1.21.6"
47-
4844
- uses: actions/checkout@v4
4945
with:
5046
path: src/github.com/containerd/containerd
5147

48+
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
49+
5250
- name: Set env
5351
shell: bash
5452
run: |

.github/workflows/codeql.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
3434

35-
- uses: actions/setup-go@v5
36-
with:
37-
go-version: 1.21.6
35+
- uses: ./.github/actions/install-go
3836

3937
# Initializes the CodeQL tools for scanning.
4038
- name: Initialize CodeQL

.github/workflows/fuzz.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
runs-on: ubuntu-latest
4141
timeout-minutes: 30
4242
steps:
43-
- uses: actions/setup-go@v5
44-
with:
45-
go-version: 1.21.x
4643
- uses: actions/checkout@v4
44+
- uses: ./.github/actions/install-go
4745
- run: script/go-test-fuzz.sh

.github/workflows/images.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ jobs:
2626
working-directory: src/github.com/containerd/containerd
2727

2828
steps:
29-
- uses: actions/setup-go@v5
30-
with:
31-
go-version: "1.21.6"
32-
3329
- uses: actions/checkout@v4
3430
with:
3531
path: src/github.com/containerd/containerd
3632

33+
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
34+
3735
- name: Set env
3836
shell: bash
3937
run: |

.github/workflows/nightly.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
paths:
77
- ".github/workflows/nightly.yml"
88

9-
env:
10-
GO_VERSION: "1.21.6"
11-
129
permissions: # added using https://github.com/step-security/secure-workflows
1310
contents: read
1411

@@ -23,14 +20,12 @@ jobs:
2320
working-directory: src/github.com/containerd/containerd
2421

2522
steps:
26-
- uses: actions/setup-go@v5
27-
with:
28-
go-version: ${{ env.GO_VERSION }}
29-
3023
- uses: actions/checkout@v4
3124
with:
3225
path: src/github.com/containerd/containerd
3326

27+
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
28+
3429
- name: Set env
3530
shell: bash
3631
run: |
@@ -143,14 +138,12 @@ jobs:
143138
working-directory: src/github.com/containerd/containerd
144139

145140
steps:
146-
- uses: actions/setup-go@v5
147-
with:
148-
go-version: ${{ env.GO_VERSION }}
149-
150141
- uses: actions/checkout@v4
151142
with:
152143
path: src/github.com/containerd/containerd
153144

145+
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
146+
154147
- name: Set env
155148
shell: bash
156149
run: |

0 commit comments

Comments
 (0)