Skip to content

Commit f030970

Browse files
committed
adding import workflow
1 parent fae1824 commit f030970

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Verify Generated Files and Import Organization
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
paths:
7+
- '**.go'
8+
- '**go.mod'
9+
- '**go.sum'
10+
tags-ignore:
11+
- 'v*'
12+
pull_request:
13+
paths:
14+
- '**.go'
15+
- '**go.mod'
16+
- '**go.sum'
17+
jobs:
18+
verify-imports:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set Go
23+
uses: actions/setup-go@v3
24+
with:
25+
go-version: v1.19
26+
- name: Verify that imports are organized
27+
run: make verify-imports
28+
29+
verify-manifests:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Set Go
34+
uses: actions/setup-go@v3
35+
with:
36+
go-version: v1.19
37+
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
38+
run: make manifests && git diff --exit-code

0 commit comments

Comments
 (0)