From 6941654d9c6af685051befca3eac33dc4c89fce2 Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Fri, 13 Dec 2024 16:24:32 +0300 Subject: [PATCH] PMM-13597 Update github actions --- .github/workflows/admin.yml | 3 +++ .github/workflows/agent.yml | 3 +++ .github/workflows/helm-tests.yml | 22 +++++++++++++--------- .github/workflows/main.yml | 4 ++++ .github/workflows/managed.yml | 3 +++ .github/workflows/podman-tests.yml | 18 ++++++++++++------ .github/workflows/qan-api2.yml | 3 +++ .github/workflows/update.yml | 4 ++++ .github/workflows/vmproxy.yml | 3 +++ documentation/docs/img/loading.gif | Bin 3801 -> 0 bytes 10 files changed, 48 insertions(+), 15 deletions(-) delete mode 100644 documentation/docs/img/loading.gif diff --git a/.github/workflows/admin.yml b/.github/workflows/admin.yml index 79228aee4e..d60ac835b3 100644 --- a/.github/workflows/admin.yml +++ b/.github/workflows/admin.yml @@ -7,12 +7,15 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" pull_request: paths-ignore: - "agent/**" - "api-tests/**" - "docs/**" + - "documentation/**" - "managed/**" - "qan-api2/**" - "update/**" diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index c8f78f5312..51e1dcee69 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -7,6 +7,8 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" pull_request: paths-ignore: @@ -14,6 +16,7 @@ on: - "api-tests/**" - "cli-tests/**" - "docs/**" + - "documentation/**" - "managed/**" - "qan-api2/**" - "update/**" diff --git a/.github/workflows/helm-tests.yml b/.github/workflows/helm-tests.yml index 541ebe8b01..3bbf5e4687 100644 --- a/.github/workflows/helm-tests.yml +++ b/.github/workflows/helm-tests.yml @@ -4,11 +4,9 @@ on: push: branches: - main - paths: - - 'documentation/docs/install-pmm/install-pmm-server/baremetal/helm.md' pull_request: paths: - - 'documentation/docs/install-pmm/install-pmm-server/baremetal/helm.md' + - 'documentation/docs/setting-up/server/helm.md' workflow_dispatch: @@ -18,7 +16,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -26,18 +24,22 @@ jobs: run: | wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb sudo apt-get install -y ./pandoc-2.18-1-amd64.deb + rm ./pandoc-2.18-1-amd64.deb - name: Copy test template - run: cp documentation/resources/bin/doc_test_template.sh documentation/docs_test_helm.sh + working-directory: ${{ github.workspace }}/documentation + run: cp resources/bin/doc_test_template.sh ./docs_test_helm.sh - name: Get CodeBlocks and push them to test template - run: | - pandoc -i documentation/docs/install-pmm/install-pmm-server/baremetal/helm.md --lua-filter documentation/resources/bin/CodeBlock.lua -t html -o /dev/null >> documentation/docs_test_helm.sh + working-directory: ${{ github.workspace }}/documentation + run: pandoc -i docs/setting-up/server/helm.md --lua-filter resources/bin/CodeBlock.lua -t html -o /dev/null >> docs_test_helm.sh - name: Start k8s cluster + working-directory: ${{ github.workspace }}/documentation run: minikube start - name: Setup storage driver for snapshots + working-directory: ${{ github.workspace }}/documentation run: | minikube addons disable storage-provisioner kubectl delete storageclass standard @@ -46,12 +48,14 @@ jobs: kubectl patch storageclass csi-hostpath-sc -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' - name: Run helm tests - run: ./documentation/docs_test_helm.sh + working-directory: ${{ github.workspace }}/documentation + run: ./docs_test_helm.sh - name: Get debug if: ${{ failure() }} + working-directory: ${{ github.workspace }}/documentation run: | - cat ./documentation/docs_test_helm.sh + cat ./docs_test_helm.sh pandoc --version helm version kubectl get pods diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c02a2df21d..dc5b981c1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,12 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" pull_request: + paths-ignore: + - "documentation/**" jobs: check: diff --git a/.github/workflows/managed.yml b/.github/workflows/managed.yml index a7afa8b47f..e7b1859018 100644 --- a/.github/workflows/managed.yml +++ b/.github/workflows/managed.yml @@ -6,6 +6,8 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - 'documentation/**' pull_request: paths-ignore: @@ -14,6 +16,7 @@ on: - 'api-tests/**' - 'cli-tests/**' - 'docs/**' + - 'documentation/**' - 'qan-api2/**' - 'update/**' - 'vmproxy/**' diff --git a/.github/workflows/podman-tests.yml b/.github/workflows/podman-tests.yml index 991cec2ba0..98992e98b7 100644 --- a/.github/workflows/podman-tests.yml +++ b/.github/workflows/podman-tests.yml @@ -4,9 +4,11 @@ on: push: branches: - main + paths: + - 'documentation/docs/setting-up/server/podman.md' pull_request: paths: - - 'documentation/docs/install-pmm/install-pmm-server/baremetal/podman.md' + - 'documentation/docs/setting-up/server/podman.md' workflow_dispatch: @@ -24,21 +26,25 @@ jobs: run: | wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb sudo apt-get install -y ./pandoc-2.18-1-amd64.deb - rm pandoc-2.18-1-amd64.deb + rm ./pandoc-2.18-1-amd64.deb - name: Copy test template - run: cp documentation/resources/bin/doc_test_template.sh ./documentation/docs_test_podman.sh + working-directory: ${{ github.workspace }}/documentation + run: cp _resources/bin/doc_test_template.sh ./docs_test_podman.sh - name: Get CodeBlocks and push them to test template - run: pandoc -i documentation/docs/install-pmm/install-pmm-server/baremetal/podman.md --lua-filter documentation/resources/bin/CodeBlock.lua -t html -o /dev/null >> documentation/docs_test_podman.sh + working-directory: ${{ github.workspace }}/documentation + run: pandoc -i docs/setting-up/server/podman.md --lua-filter _resources/bin/CodeBlock.lua -t html -o /dev/null >> docs_test_podman.sh - name: Run podman tests - run: ./documentation/docs_test_podman.sh + working-directory: ${{ github.workspace }}/documentation + run: ./docs_test_podman.sh - name: Get debug if: ${{ failure() }} + working-directory: ${{ github.workspace }}/documentation run: | - cat ./documentation/docs_test_podman.sh + cat ./docs_test_podman.sh pandoc --version podman version podman ps --all || true diff --git a/.github/workflows/qan-api2.yml b/.github/workflows/qan-api2.yml index af154d2d86..a950677dd2 100644 --- a/.github/workflows/qan-api2.yml +++ b/.github/workflows/qan-api2.yml @@ -7,6 +7,8 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" pull_request: paths-ignore: @@ -15,6 +17,7 @@ on: - "api-tests/**" - "cli-tests/**" - "docs/**" + - "documentation/**" - "managed/**" - "update/**" - "vmproxy/**" diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 31c5a84843..67c1a23da6 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -7,6 +7,9 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" + pull_request: paths-ignore: - "admin/**" @@ -14,6 +17,7 @@ on: - "api-tests/**" - "cli-tests/**" - "docs/**" + - "documentation/**" - "managed/**" - "qan-api2/**" - "vmproxy/**" diff --git a/.github/workflows/vmproxy.yml b/.github/workflows/vmproxy.yml index 169e97c56c..04ad275f82 100644 --- a/.github/workflows/vmproxy.yml +++ b/.github/workflows/vmproxy.yml @@ -7,6 +7,8 @@ on: - pmm-* tags: - v[0-9]+.[0-9]+.[0-9]+* + paths-ignore: + - "documentation/**" pull_request: paths-ignore: @@ -15,6 +17,7 @@ on: - "api-tests/**" - "cli-tests/**" - "docs/**" + - "documentation/**" - "managed/**" - "qan-api2/**" - "update/**" diff --git a/documentation/docs/img/loading.gif b/documentation/docs/img/loading.gif deleted file mode 100644 index d3bbc80623da993b708d7a8b313fcd674453c53f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3801 zcmb`K`Ck)v8pr3(B$RM7RIYmKH@j?U@73;a$?RMSq>TcavYk%1J17@Cif8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