Skip to content

Commit

Permalink
Simplify GitHub Action workflows
Browse files Browse the repository at this point in the history
- Removes unnecessary subdirectories in favor of
defaults
- Also attempts to resolve the `setup-go` caching
warnings.

Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
  • Loading branch information
dhaiducek committed Feb 13, 2024
1 parent 1b5ccdc commit c14c044
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/go-postsubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ on:
branches:
- main
- release-*
workflow_dispatch: {}

env:
# Common versions
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/governance-policy-framework-addon/governance-policy-framework-addon/go'
defaults:
run:
working-directory: go/src/open-cluster-management.io/governance-policy-framework-addon

jobs:
verify:
Expand All @@ -22,13 +13,8 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/governance-policy-framework-addon
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go/src/open-cluster-management.io/governance-policy-framework-addon/go.mod
- name: images
run: make build-images
- name: push
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:

env:
TAG: ${{ github.ref_name }}
defaults:
run:
working-directory: go/src/open-cluster-management.io/governance-policy-framework-addon

jobs:
release:
Expand All @@ -19,13 +16,8 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/governance-policy-framework-addon
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go/src/open-cluster-management.io/governance-policy-framework-addon/go.mod
- name: build images
run: |
make build-images
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
defaults:
run:
shell: bash
working-directory: governance-policy-framework-addon

jobs:
kind-tests:
Expand All @@ -34,14 +33,9 @@ jobs:
steps:
- name: Checkout Governance Policy Framework Addon
uses: actions/checkout@v4
with:
path: governance-policy-framework-addon
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: governance-policy-framework-addon/go.mod

- name: Verify modules
run: |
Expand Down

0 comments on commit c14c044

Please sign in to comment.