From caa366d5522d5e77aa2509cb13703c88de35f449 Mon Sep 17 00:00:00 2001 From: Orkun Date: Tue, 24 Oct 2023 14:13:23 +0300 Subject: [PATCH 1/2] chore: add reusable workflows --- .github/workflows/analyze-commits.yml | 11 +++++++++++ .github/workflows/e2e.yml | 19 ++++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/analyze-commits.yml diff --git a/.github/workflows/analyze-commits.yml b/.github/workflows/analyze-commits.yml new file mode 100644 index 0000000..b0800b4 --- /dev/null +++ b/.github/workflows/analyze-commits.yml @@ -0,0 +1,11 @@ +name: Analyze Commit Messages +on: + pull_request: + +permissions: + pull-requests: write + contents: write +jobs: + analyze-commits: + name: Analyze Commits + uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1 \ No newline at end of file diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 458434f..371e877 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -7,7 +7,7 @@ on: jobs: - build-and-deploy-and-test-e2e: + build-and-test-e2e: runs-on: ubuntu-20.04 name: Build & Deploy & Test e2e steps: @@ -31,11 +31,12 @@ jobs: RESULT_PATH: ${{secrets.RESULT_PATH}} AGENT_PATH: ${{secrets.AGENT_PATH}} FPJS_API_KEY: ${{secrets.FPJS_API_KEY}} - - name: Report Status - if: always() - uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9 - with: - status: ${{ job.status }} - notification_title: "Akamai E2E Test has {status_message}" - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + report-status: + needs: build-and-test-e2e + if: always() + uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1 + with: + notification_title: 'Akamai E2E Test: {status_message}' + job_status: ${{ needs.test-job.result }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file From 69cfa78b11ba101766eacc3551e8150df2e37ebc Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 25 Oct 2023 10:24:59 +0300 Subject: [PATCH 2/2] chore: fix job_status on report status workflow --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 371e877..b4090f9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -37,6 +37,6 @@ jobs: uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1 with: notification_title: 'Akamai E2E Test: {status_message}' - job_status: ${{ needs.test-job.result }} + job_status: ${{ needs.build-and-test-e2e.result }} secrets: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file