Skip to content

Commit

Permalink
PMM-13597 Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 13, 2024
1 parent 937ec10 commit 6941654
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "documentation/**"

pull_request:
paths-ignore:
- "admin/**"
- "api-tests/**"
- "cli-tests/**"
- "docs/**"
- "documentation/**"
- "managed/**"
- "qan-api2/**"
- "update/**"
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/helm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -18,26 +16,30 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install pandoc
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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "documentation/**"

pull_request:
paths-ignore:
- "documentation/**"

jobs:
check:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- 'documentation/**'

pull_request:
paths-ignore:
Expand All @@ -14,6 +16,7 @@ on:
- 'api-tests/**'
- 'cli-tests/**'
- 'docs/**'
- 'documentation/**'
- 'qan-api2/**'
- 'update/**'
- 'vmproxy/**'
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/podman-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/qan-api2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "documentation/**"

pull_request:
paths-ignore:
Expand All @@ -15,6 +17,7 @@ on:
- "api-tests/**"
- "cli-tests/**"
- "docs/**"
- "documentation/**"
- "managed/**"
- "update/**"
- "vmproxy/**"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "documentation/**"

pull_request:
paths-ignore:
- "admin/**"
- "agent/**"
- "api-tests/**"
- "cli-tests/**"
- "docs/**"
- "documentation/**"
- "managed/**"
- "qan-api2/**"
- "vmproxy/**"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/vmproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "documentation/**"

pull_request:
paths-ignore:
Expand All @@ -15,6 +17,7 @@ on:
- "api-tests/**"
- "cli-tests/**"
- "docs/**"
- "documentation/**"
- "managed/**"
- "qan-api2/**"
- "update/**"
Expand Down
Binary file removed documentation/docs/img/loading.gif
Binary file not shown.

0 comments on commit 6941654

Please sign in to comment.