From 5cbd0e46c138d6f4d031674d227f6df36bbc0712 Mon Sep 17 00:00:00 2001 From: Jerry He <37866862+jerryhe1999@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:15:29 -0700 Subject: [PATCH] Add deprecated apiGroups detection on workflow. (#3351) * Add deprecated apiGroups detection on workflow. * Seperate deprecated api detection from unit test. * Remove deprecated api detection from unit test. --- .github/workflows/deprecated-api-detect.yaml | 21 ++++++++++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deprecated-api-detect.yaml diff --git a/.github/workflows/deprecated-api-detect.yaml b/.github/workflows/deprecated-api-detect.yaml new file mode 100644 index 000000000..a9ba96586 --- /dev/null +++ b/.github/workflows/deprecated-api-detect.yaml @@ -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 . \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b982bf354..3b1078cc7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,4 +32,4 @@ jobs: - name: make quick-ci run: | - make quick-ci + make quick-ci \ No newline at end of file