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>
(cherry picked from commit e08ed0b)
  • Loading branch information
dhaiducek committed Feb 16, 2024
1 parent d9f0981 commit 41e1748
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 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: config-policy-controller

jobs:
kind-tests:
Expand All @@ -33,15 +32,11 @@ jobs:
steps:
- name: Checkout Config Policy Controller
uses: actions/checkout@v4
with:
path: config-policy-controller
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Set up Go
uses: actions/setup-go@v5
id: go
with:
go-version-file: config-policy-controller/go.mod
go-version-file: go.mod

- name: Verify modules
run: |
Expand Down Expand Up @@ -123,9 +118,9 @@ jobs:
with:
name: artifacts
path: |
config-policy-controller/coverage*.out
config-policy-controller/event.json
config-policy-controller/gosec.json
coverage*.out
event.json
gosec.json
- name: Debug
if: ${{ failure() }}
Expand Down

0 comments on commit 41e1748

Please sign in to comment.