Skip to content

Commit 467754d

Browse files
jerryhe1999jkdihenkar
authored andcommitted
Add deprecated apiGroups detection on workflow. (kubernetes-sigs#3351)
* Add deprecated apiGroups detection on workflow. * Seperate deprecated api detection from unit test. * Remove deprecated api detection from unit test.
1 parent 6929a37 commit 467754d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deprecated API detect
2+
on:
3+
push:
4+
branches: [main]
5+
permissions:
6+
contents: read
7+
jobs:
8+
deprecated-apigroups:
9+
name: Detect deprecated apiGroups
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- run: |
14+
version=$(curl -sL https://api.github.com/repos/FairwindsOps/pluto/releases/latest | jq -r ".tag_name")
15+
number=${version:1}
16+
wget https://github.com/FairwindsOps/pluto/releases/download/${version}/pluto_${number}_linux_amd64.tar.gz
17+
sudo tar -C /usr/local -xzf pluto_${number}_linux_amd64.tar.gz
18+
- run: |
19+
rm -rf docs/install
20+
rm -rf config/samples
21+
/usr/local/pluto detect-files -d .

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232

3333
- name: make quick-ci
3434
run: |
35-
make quick-ci
35+
make quick-ci

0 commit comments

Comments
 (0)