Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 5922491

Browse files
committed
ci: Update pr.yaml
- remove caching - add workflow_dispatch - Add spacing Signed-off-by: Chris Privitere <[email protected]>
1 parent 75cafe6 commit 5922491

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/pr.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Pull Request Validation
22
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
35
workflow_dispatch:
6+
47
jobs:
58
validate:
69
name: "Validate ${{ matrix.target }}"
@@ -9,28 +12,17 @@ jobs:
912
fail-fast: false
1013
matrix:
1114
target: ["verify", "lint", "test"]
15+
1216
steps:
17+
1318
- name: checkout
1419
uses: actions/checkout@v3
1520
with:
1621
fetch-depth: 0
22+
1723
- uses: actions/setup-go@v4
1824
with:
1925
go-version-file: './go.mod'
20-
- uses: actions/cache@v3
21-
with:
22-
path: hack/tools/bin
23-
key: ${{ runner.os }}-tools-bin-${{ matrix.target }}-${{ hashFiles('Makefile') }}
24-
restore-keys: |
25-
${{ runner.os }}-tools-bin-${{ matrix.target }}-
26-
${{ runner.os }}-tools-bin-
27-
- uses: actions/cache@v3
28-
if: ${{ matrix.target == 'test' }}
29-
with:
30-
path: /tmp/kubebuilder-tools-*.tar.gz
31-
key: ${{ runner.os }}-tmp-${{ matrix.target }}-${{ hashFiles('scripts/fetch_ext_bins.sh') }}
32-
restore-keys: |
33-
${{ runner.os }}-tmp-${{ matrix.target }}-
34-
${{ runner.os }}-tmp-
26+
3527
- name: ${{ matrix.target }}
36-
run: make ${{ matrix.target }}
28+
run: make ${{ matrix.target }}

0 commit comments

Comments
 (0)