Skip to content

Commit

Permalink
Merge pull request kubeedge#5856 from Shelley-BaoYue/upgrade-github-a…
Browse files Browse the repository at this point in the history
…ction

Upgrade github actions to v4
  • Loading branch information
kubeedge-bot authored Sep 12, 2024
2 parents b73cc46 + c046ee4 commit 410c6f6
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
dry-run: false
language: go
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "^1.21.x"
- run: go version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
GOPATH: /home/runner/work/${{ github.repository }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
path: ./src/github.com/${{ github.repository }}
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
GOPATH: /home/runner/work/${{ github.repository }}
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
path: ./src/github.com/${{ github.repository }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
docker save kubeedge/build-tools:1.21.11-ke1 > /home/runner/build-tools/build-tools.tar
- name: Temporarily save kubeedge/build-tools image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-tools-docker-artifact
path: /home/runner/build-tools
Expand All @@ -80,18 +80,18 @@ jobs:
name: Multiple build
needs: image-prepare
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Retrieve saved kubeedge/build-tools image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-tools-docker-artifact
path: /home/runner/build-tools
Expand All @@ -118,11 +118,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -132,7 +132,7 @@ jobs:
command -v ginkgo || go install github.com/onsi/ginkgo/v2/ginkgo@${{ env.GINKGO_VERSION }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -183,11 +183,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -199,15 +199,15 @@ jobs:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: cleanup images
run: docker system prune -a -f

- name: Retrieve saved kubeedge/build-tools image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-tools-docker-artifact
path: /home/runner/build-tools
Expand All @@ -229,7 +229,7 @@ jobs:
export CONTAINER_RUNTIME="containerd"
make e2e
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.cases.version }}-${{ matrix.cases.protocol }}-e2e-test-logs
Expand All @@ -246,11 +246,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -262,15 +262,15 @@ jobs:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: cleanup images
run: docker system prune -a -f

- name: Retrieve saved kubeedge/build-tools image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-tools-docker-artifact
path: /home/runner/build-tools
Expand All @@ -293,11 +293,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -309,7 +309,7 @@ jobs:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -332,13 +332,13 @@ jobs:
timeout-minutes: 40
name: Multiple docker image build
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -360,11 +360,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -376,7 +376,7 @@ jobs:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -385,7 +385,7 @@ jobs:
env:
CONTAINER_RUNTIME: ${{ matrix.container-runtime }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.container-runtime }}-e2e-test-logs
Expand All @@ -402,11 +402,11 @@ jobs:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -418,15 +418,15 @@ jobs:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cleanup images
run: docker system prune -a -f

- name: Retrieve saved kubeedge/build-tools image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-tools-docker-artifact
path: /home/runner/build-tools
Expand All @@ -445,7 +445,7 @@ jobs:
make conformance_e2e
- name: Upload conformance e2e test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: kube-conformance-e2e-results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
hash-edgesite-linux-arm: ${{ steps.hash.outputs.hash-edgesite-linux-arm }}
steps:
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# fetch-depth:
# 0 indicates all history for all branches and tags.
Expand Down
Loading

0 comments on commit 410c6f6

Please sign in to comment.