Skip to content

Commit

Permalink
ci: Fix workflows (apache#1956)
Browse files Browse the repository at this point in the history
* fix workflows

* update actions
  • Loading branch information
daroga0002 authored Sep 18, 2023
1 parent 43444f8 commit 2fd78db
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 84 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
push:
branches: [ master ]
pull_request:
type: [review_requested, ready_for_review]
types: [review_requested, ready_for_review]
# The branches below must be a subset of the branches above
branches:
- master
Expand All @@ -37,7 +37,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -66,11 +66,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -81,7 +81,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -95,4 +95,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
branches:
- master
- 1.7.0
type: [review_requested, ready_for_review]
types: [review_requested, ready_for_review]

permissions:
contents: read
Expand All @@ -32,6 +32,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v1
uses: actions/dependency-review-action@v3
24 changes: 12 additions & 12 deletions .github/workflows/e2e-test-ci-v2-cron-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -71,20 +71,20 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3 # v3.0.2
uses: actions/checkout@v4

- name: Setup Go Env
id: go
uses: actions/setup-go@v3 # v3.2.0
uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: '1.20'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2 #v2.0.0
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2 # v2.0.0
uses: docker/setup-buildx-action@v3
with:
version: latest

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
| pigz > docker-dev.tar.gz
- name: cache
uses: actions/upload-artifact@v3 # v3.1.0
uses: actions/upload-artifact@v3
with:
name: docker-dev.tar.gz
path: docker-dev.tar.gz
Expand All @@ -127,7 +127,7 @@ jobs:
if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -155,21 +155,21 @@ jobs:
suite: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Go Env
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.20"

- name: Install ginkgo
run: |
go install github.com/onsi/ginkgo/v2/[email protected]
sudo cp ~/go/bin/ginkgo /usr/local/bin
- name: cache
uses: actions/download-artifact@v3 # v3
uses: actions/download-artifact@v3
with:
name: docker-dev.tar.gz

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/e2e-test-ci-v2-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -72,20 +72,20 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3 # v3.0.2
uses: actions/checkout@v4

- name: Setup Go Env
id: go
uses: actions/setup-go@v3 # v3.2.0
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2 #v2.0.0
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2 # v2.0.0
uses: docker/setup-buildx-action@v3
with:
version: latest

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
| pigz > docker-v2.tar.gz
- name: cache
uses: actions/upload-artifact@v3 # v3.1.0
uses: actions/upload-artifact@v3
with:
name: docker-v2.tar.gz
path: docker-v2.tar.gz
Expand All @@ -128,7 +128,7 @@ jobs:
if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -156,11 +156,11 @@ jobs:
suite: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Go Env
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.20"

Expand All @@ -170,7 +170,7 @@ jobs:
sudo cp ~/go/bin/ginkgo /usr/local/bin
- name: cache
uses: actions/download-artifact@v3 # v3
uses: actions/download-artifact@v3
with:
name: docker-v2.tar.gz

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/e2e-test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
branches:
- master
- 1.7.0
type: [review_requested, ready_for_review]
types: [review_requested, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -40,7 +40,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -72,20 +72,20 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3 # v3.0.2
uses: actions/checkout@v4

- name: Setup Go Env
id: go
uses: actions/setup-go@v3 # v3.2.0
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2 #v2.0.0
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2 # v2.0.0
uses: docker/setup-buildx-action@v3
with:
version: latest

Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
| pigz > docker.tar.gz
- name: cache
uses: actions/upload-artifact@v3 # v3.1.0
uses: actions/upload-artifact@v3
with:
name: docker.tar.gz
path: docker.tar.gz
Expand All @@ -129,7 +129,7 @@ jobs:
if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -159,11 +159,11 @@ jobs:
enabled-etcdserver: [ true, false ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Go Env
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.20"

Expand All @@ -173,7 +173,7 @@ jobs:
sudo cp ~/go/bin/ginkgo /usr/local/bin
- name: cache
uses: actions/download-artifact@v3 # v3
uses: actions/download-artifact@v3
with:
name: docker.tar.gz

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/goimports-reviser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
branches:
- master
- 1.7.0
type: [review_requested, ready_for_review]
types: [review_requested, ready_for_review]
jobs:
changes:
runs-on: ubuntu-latest
Expand All @@ -35,7 +35,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
(needs.changes.outputs.go == 'true')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go Env
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Make update-gofmt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
branches:
- master
- 1.7.0
type: [review_requested, ready_for_review]
types: [review_requested, ready_for_review]

jobs:
changes:
Expand All @@ -36,7 +36,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -66,9 +66,9 @@ jobs:
(needs.changes.outputs.go == 'true')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go Env
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'

Expand Down
Loading

0 comments on commit 2fd78db

Please sign in to comment.