From 6654798aaab37f2f42427214fbae06ed931e0639 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Wed, 29 Mar 2023 19:47:28 +0000 Subject: [PATCH] patch: Add Foresight actions to CI (#29) Context: https://docs.runforesight.com/advanced-configuration/workflow-kit --- .github/workflows/__check_pr_title.yaml | 2 ++ .github/workflows/__lint.yaml | 2 ++ .github/workflows/__release.yaml | 2 ++ .github/workflows/_get_workflow_version.yaml | 2 ++ .github/workflows/build_charm_without_cache.yaml | 2 ++ .github/workflows/build_charms_with_cache.yaml | 4 ++++ .github/workflows/lint.yaml | 4 ++++ .github/workflows/release_charm.yaml | 2 ++ .github/workflows/sync_issue_to_jira.yaml | 4 ++++ .github/workflows/update_bundle.yaml | 2 ++ 10 files changed, 26 insertions(+) diff --git a/.github/workflows/__check_pr_title.yaml b/.github/workflows/__check_pr_title.yaml index 1ff6c5ff..118c34e2 100644 --- a/.github/workflows/__check_pr_title.yaml +++ b/.github/workflows/__check_pr_title.yaml @@ -16,6 +16,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Check semantic version prefix diff --git a/.github/workflows/__lint.yaml b/.github/workflows/__lint.yaml index 72ecb203..6f4984d1 100644 --- a/.github/workflows/__lint.yaml +++ b/.github/workflows/__lint.yaml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Install actionlint diff --git a/.github/workflows/__release.yaml b/.github/workflows/__release.yaml index 6d800af6..1d180399 100644 --- a/.github/workflows/__release.yaml +++ b/.github/workflows/__release.yaml @@ -13,6 +13,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/_get_workflow_version.yaml b/.github/workflows/_get_workflow_version.yaml index 37c90e55..8272d222 100644 --- a/.github/workflows/_get_workflow_version.yaml +++ b/.github/workflows/_get_workflow_version.yaml @@ -44,6 +44,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Install pyyaml run: python3 -m pip install pyyaml - name: Get reusable workflow version diff --git a/.github/workflows/build_charm_without_cache.yaml b/.github/workflows/build_charm_without_cache.yaml index b1144577..e51d8761 100644 --- a/.github/workflows/build_charm_without_cache.yaml +++ b/.github/workflows/build_charm_without_cache.yaml @@ -25,6 +25,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Setup environment diff --git a/.github/workflows/build_charms_with_cache.yaml b/.github/workflows/build_charms_with_cache.yaml index aef82cbc..41119a2f 100644 --- a/.github/workflows/build_charms_with_cache.yaml +++ b/.github/workflows/build_charms_with_cache.yaml @@ -51,6 +51,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Install pyyaml run: python3 -m pip install pyyaml - name: Checkout charm repository @@ -80,6 +82,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Setup environment diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 1097d3fc..6cbf1ba2 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Install actionlint @@ -29,6 +31,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Checkout uses: actions/checkout@v3 - name: Install tox diff --git a/.github/workflows/release_charm.yaml b/.github/workflows/release_charm.yaml index 3678b2b6..23d1f93c 100644 --- a/.github/workflows/release_charm.yaml +++ b/.github/workflows/release_charm.yaml @@ -42,6 +42,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Install pyyaml run: python3 -m pip install pyyaml - name: Install docker diff --git a/.github/workflows/sync_issue_to_jira.yaml b/.github/workflows/sync_issue_to_jira.yaml index eb8c2104..f4ec95f4 100644 --- a/.github/workflows/sync_issue_to_jira.yaml +++ b/.github/workflows/sync_issue_to_jira.yaml @@ -34,6 +34,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Login to Jira API uses: atlassian/gajira-login@v3 env: @@ -92,6 +94,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Get Jira issue key id: get-jira-issue-key shell: python diff --git a/.github/workflows/update_bundle.yaml b/.github/workflows/update_bundle.yaml index ba85468e..780c8f6a 100644 --- a/.github/workflows/update_bundle.yaml +++ b/.github/workflows/update_bundle.yaml @@ -47,6 +47,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: 'Foresight: Collect workflow telemetry' + uses: runforesight/foresight-workflow-kit-action@v1 - name: Install dependencies run: python3 -m pip install requests pyyaml - name: Checkout bundle repository