Skip to content

Commit

Permalink
Update go setup in github workflows
Browse files Browse the repository at this point in the history
* remove unused workflows
* bump version of actions
* bump go in dapper file
  • Loading branch information
Mario Manno authored and manno committed Jan 15, 2024
1 parent fdd1d79 commit 0ed7624
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 1,103 deletions.
167 changes: 0 additions & 167 deletions .github/workflows/aks.yml

This file was deleted.

17 changes: 4 additions & 13 deletions .github/workflows/check-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,21 @@ env:
MAIN_BRANCH: origin/master
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.19.*'

jobs:
check-changes:
runs-on: ubuntu-latest

steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
-
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: 'go.mod'
check-latest: true
-
name: gitjob
run: ./.github/scripts/check-for-gitjob-changes.sh
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,21 @@ on:
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.19.*'

jobs:
unit-test:
runs-on: ubuntu-latest

steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
-
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: 'go.mod'
check-latest: true
-
name: unit-test
run: go test -shuffle=on $(go list ./... | grep -v -e /e2e -e /integrationtests)
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.19.*'
SETUP_K3D_VERSION: 'v5.5.1'

jobs:
Expand All @@ -30,22 +29,14 @@ jobs:
- v1.22.10-k3s1
steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
-
uses: actions/setup-go@v4
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: 'go.mod'
check-latest: true
-
name: Install Ginkgo CLI
run: go install github.com/onsi/ginkgo/v2/ginkgo
Expand Down Expand Up @@ -155,7 +146,7 @@ jobs:
./.github/scripts/dump-failed-k3ds.sh
-
name: Upload Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: gha-fleet-e2e-logs-${{ github.sha }}-${{ matrix.k3s_version }}-${{ github.run_id }}
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/e2e-multicluster-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.19.*'
SETUP_K3D_VERSION: 'v5.5.1'

jobs:
Expand All @@ -27,22 +26,14 @@ jobs:

steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
-
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: 'go.mod'
check-latest: true
-
name: Install Ginkgo CLI
run: go install github.com/onsi/ginkgo/v2/ginkgo
Expand Down Expand Up @@ -148,7 +139,7 @@ jobs:
./.github/scripts/dump-failed-k3ds.sh
-
name: Upload Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: gha-fleet-mc-e2e-logs-${{ github.sha }}-${{ github.run_id }}
Expand Down
Loading

0 comments on commit 0ed7624

Please sign in to comment.