Skip to content

Commit

Permalink
Add deprecated apiGroups detection on workflow. (kubernetes-sigs#3351)
Browse files Browse the repository at this point in the history
* Add deprecated apiGroups detection on workflow.

* Seperate deprecated api detection from unit test.

* Remove deprecated api detection from unit test.
  • Loading branch information
jerryhe1999 authored Aug 23, 2023
1 parent dbf98e0 commit 5cbd0e4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/deprecated-api-detect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deprecated API detect
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deprecated-apigroups:
name: Detect deprecated apiGroups
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
version=$(curl -sL https://api.github.com/repos/FairwindsOps/pluto/releases/latest | jq -r ".tag_name")
number=${version:1}
wget https://github.com/FairwindsOps/pluto/releases/download/${version}/pluto_${number}_linux_amd64.tar.gz
sudo tar -C /usr/local -xzf pluto_${number}_linux_amd64.tar.gz
- run: |
rm -rf docs/install
rm -rf config/samples
/usr/local/pluto detect-files -d .
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:

- name: make quick-ci
run: |
make quick-ci
make quick-ci

0 comments on commit 5cbd0e4

Please sign in to comment.