Update workflow files to install Go via composite action
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
488b563610
commit
2820343d47
6
.github/workflows/build-test-images.yml
vendored
6
.github/workflows/build-test-images.yml
vendored
@ -41,14 +41,12 @@ jobs:
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.21.6"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
||||
|
||||
- name: Set env
|
||||
shell: bash
|
||||
run: |
|
||||
|
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
@ -32,9 +32,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.21.6
|
||||
- uses: ./.github/actions/install-go
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
4
.github/workflows/fuzz.yml
vendored
4
.github/workflows/fuzz.yml
vendored
@ -40,8 +40,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.21.x
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/install-go
|
||||
- run: script/go-test-fuzz.sh
|
||||
|
6
.github/workflows/images.yml
vendored
6
.github/workflows/images.yml
vendored
@ -26,14 +26,12 @@ jobs:
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.21.6"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
||||
|
||||
- name: Set env
|
||||
shell: bash
|
||||
run: |
|
||||
|
15
.github/workflows/nightly.yml
vendored
15
.github/workflows/nightly.yml
vendored
@ -6,9 +6,6 @@ on:
|
||||
paths:
|
||||
- ".github/workflows/nightly.yml"
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.21.6"
|
||||
|
||||
permissions: # added using https://github.com/step-security/secure-workflows
|
||||
contents: read
|
||||
|
||||
@ -23,14 +20,12 @@ jobs:
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
||||
|
||||
- name: Set env
|
||||
shell: bash
|
||||
run: |
|
||||
@ -143,14 +138,12 @@ jobs:
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
||||
|
||||
- name: Set env
|
||||
shell: bash
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user