From 085a5f250ff23fcde03e3aade88c01813f6e9f60 Mon Sep 17 00:00:00 2001 From: Hamed Karbasi Date: Tue, 19 Sep 2023 16:54:13 +0330 Subject: [PATCH] add catalog validation to github action --- .github/workflows/checks.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/checks.yaml diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml new file mode 100644 index 0000000..de86fc6 --- /dev/null +++ b/.github/workflows/checks.yaml @@ -0,0 +1,21 @@ +name: Checks + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: opm validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install opm + run: | + curl -L https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable-4.13/opm-linux.tar.gz | tar -xvz + chmod +x ./opm + mv opm /usr/local/bin/opm + - name: Catalog Validation + run: opm validate catalog \ No newline at end of file