From 24fdd5bdda1845d843a814001ed01b158346aa9a Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Fri, 1 Dec 2023 14:25:18 -0800 Subject: [PATCH 01/35] PG-31 --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b9e672..9d81982 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,37 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' + - name: Slack notification + id: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + channel-id: 'C068A06PV43' + payload: | + { + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Status:*\n${{ job.status }}/" + }, + { + "type": "mrkdwn", + "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" + } + ] + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + From bfb3305db395a28315bd5b55f78301d225703cf9 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Fri, 1 Dec 2023 14:31:19 -0800 Subject: [PATCH 02/35] PG-31 --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d81982..ae46417 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,18 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: php-actions/composer@v6 + - name: Run php-actions/composer@v6 + uses: php-actions/composer@v6 + with: + php_version: "8.2" + php_extensions: intl + version: 2.x - uses: php-actions/phpunit@v3 env: XDEBUG_MODE: coverage with: + version: "10.1" + php_version: "8.2" php_extensions: xdebug coverage_clover: clover.xml coverage_text: true From 3e8073491e69cac6d2d893e2dbd2e27879e10ed8 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Fri, 1 Dec 2023 23:38:19 -0800 Subject: [PATCH 03/35] PG-31 --- .github/workflows/ci.yml | 41 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae46417..1e0f596 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,23 @@ jobs: runs-on: ubuntu-latest steps: + - name: Slack notification + id: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + channel-id: 'C068A06PV43' + payload: | + { + "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "blocks": [ + { + "type": "mrkdwn", + "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - uses: actions/checkout@v3 - name: Run php-actions/composer@v6 uses: php-actions/composer@v6 @@ -48,33 +65,17 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - name: Slack notification - id: slack uses: slackapi/slack-github-action@v1.24.0 with: channel-id: 'C068A06PV43' + update-ts: ${{ steps.slack.outputs.ts }} payload: | { - "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", + "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\n${{ job.status }}/" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] + "type": "mrkdwn", + "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } ] } From 62817c33e6c90c53cb6721ba8e4f1a3bacdd108f Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Fri, 1 Dec 2023 23:43:09 -0800 Subject: [PATCH 04/35] PG-31 --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e0f596..9b253e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,11 @@ jobs: "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ { - "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } } ] } @@ -74,8 +77,11 @@ jobs: "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ { - "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } } ] } From 91eee70fe29e74c55de891dd627555f7d9794057 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 00:04:13 -0800 Subject: [PATCH 05/35] PG-31 --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b253e6..fd231a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,20 +18,20 @@ jobs: runs-on: ubuntu-latest steps: - - name: Slack notification + - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 with: channel-id: 'C068A06PV43' payload: | { - "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "text": "CI Build Status for playground-matrix: IN PROGRESS\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*CI Build Status for playground-matrix:* *IN PROGRESS*\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -67,20 +67,20 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - - name: Slack notification + - name: "Slack notification: Finished" uses: slackapi/slack-github-action@v1.24.0 with: channel-id: 'C068A06PV43' update-ts: ${{ steps.slack.outputs.ts }} payload: | { - "text": "CI Build Status for playground-matrix: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "text": "CI Build Status for playground-matrix: DONE\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* ${{ job.status }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*CI Build Status for playground-matrix:* DONE\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From be39b88c36185be7fd3c89f3a12590eed86052b1 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 14:01:35 -0800 Subject: [PATCH 06/35] PG-31 --- .github/workflows/ci.yml | 46 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd231a3..fb790f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set start timestamp to calculate duration + id: timestamp_start + run: | + printf 'timestamp_start=%(%s)T\n' >> "$GITHUB_OUTPUT" + - name: Set the start date for the build + id: date_start + run: | + echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -31,7 +39,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* *IN PROGRESS*\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "CI Build Status for playground-matrix: :runner: *IN PROGRESS*\n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -67,7 +75,18 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - - name: "Slack notification: Finished" + - name: Calculate duration + id: timestamp_duration + if: ${{ !cancelled() }} + run: | + printf -v now '%(%s)T' + TIMESTAMP_DURATION=$((now - ${{ steps.timestamp_start.outputs.timestamp_start }})) + - name: Set the end date for the build + if: ${{ !cancelled() }} + id: date_end + run: | + echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: channel-id: 'C068A06PV43' @@ -80,7 +99,28 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* DONE\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*CI Build Status for playground-matrix:* DONE :white_check_mark:\n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* ${{ steps.date_end.outputs.DATE_END }}\n*Duration:* ${{ steps.date_end.outputs.TIMESTAMP_DURATION }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + - name: "Slack notification: Failed" + if: ${{ failure() }} + uses: slackapi/slack-github-action@v1.24.0 + with: + channel-id: 'C068A06PV43' + update-ts: ${{ steps.slack.outputs.ts }} + payload: | + { + "text": "CI Build Status for playground-matrix: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*CI Build Status for playground-matrix:* FAILED :warning: \n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* ${{ steps.date_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timestamp_duration.outputs.TIMESTAMP_DURATION }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From 6b93f975b3410303c94b50dd8689752e60c18fc5 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 17:18:08 -0800 Subject: [PATCH 07/35] PG-31 --- .github/workflows/ci.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb790f6..6445a91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,14 +18,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set start timestamp to calculate duration - id: timestamp_start + - name: Preparing timer + id: timer_start run: | - printf 'timestamp_start=%(%s)T\n' >> "$GITHUB_OUTPUT" - - name: Set the start date for the build - id: date_start - run: | - echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + (echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT) && (echo "TIMESTAMP_START=$(date +"%s")" >> ${GITHUB_ENV}) - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -39,7 +35,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "CI Build Status for playground-matrix: :runner: *IN PROGRESS*\n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "CI Build Status for playground-matrix: :runner: *IN PROGRESS*\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -75,17 +71,14 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - - name: Calculate duration - id: timestamp_duration - if: ${{ !cancelled() }} - run: | - printf -v now '%(%s)T' - TIMESTAMP_DURATION=$((now - ${{ steps.timestamp_start.outputs.timestamp_start }})) - - name: Set the end date for the build + - name: Stopping timer if: ${{ !cancelled() }} - id: date_end + id: timer_end run: | - echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + (echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT) + && (echo "TIMESTAMP_END=$(date +"%s")" >> ${GITHUB_ENV}) + && (echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${{ steps.timer_start.outputs.TIMESTAMP_START }})") + && (echo "DURATION_PHRASE=$(date -ud "${TIMESTAMP_DURATION}" +"%M minutes %S seconds)" >> ${GITHUB_ENV}) - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: @@ -99,14 +92,14 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* DONE :white_check_mark:\n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* ${{ steps.date_end.outputs.DATE_END }}\n*Duration:* ${{ steps.date_end.outputs.TIMESTAMP_DURATION }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*CI Build Status for playground-matrix:* DONE :white_check_mark:\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] } env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - - name: "Slack notification: Failed" + - name: "Send a notification for failures" if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: @@ -120,7 +113,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* FAILED :warning: \n*Start:* ${{ steps.date_start.outputs.DATE_START }}\n*End:* ${{ steps.date_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timestamp_duration.outputs.TIMESTAMP_DURATION }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*CI Build Status for playground-matrix:* FAILED :warning: \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From c4aba728d1d826024f8e69346ebf0d361988a4a4 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 21:23:41 -0800 Subject: [PATCH 08/35] PG-31 --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6445a91..de2ba11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,9 @@ jobs: - name: Preparing timer id: timer_start run: | - (echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT) && (echo "TIMESTAMP_START=$(date +"%s")" >> ${GITHUB_ENV}) + echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + echo "TIMESTAMP_START=$(date +"%s")" >> $GITHUB_OUTPUT + echo "### $DATE_START" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -75,10 +77,12 @@ jobs: if: ${{ !cancelled() }} id: timer_end run: | - (echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT) - && (echo "TIMESTAMP_END=$(date +"%s")" >> ${GITHUB_ENV}) - && (echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${{ steps.timer_start.outputs.TIMESTAMP_START }})") - && (echo "DURATION_PHRASE=$(date -ud "${TIMESTAMP_DURATION}" +"%M minutes %S seconds)" >> ${GITHUB_ENV}) + echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + echo "TIMESTAMP_END=$(date +"%s")" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${{ steps.timer_start.outputs.TIMESTAMP_START }})" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$(date -ud "${TIMESTAMP_DURATION}" +"%M minutes %S seconds)" >> $GITHUB_OUTPUT + echo "### $DATE_END" >> $GITHUB_STEP_SUMMARY + echo "### $DURATION_PHRASE" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 02caba34e712fd27633391d33fd627965f7c8cdf Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 21:30:53 -0800 Subject: [PATCH 09/35] PG-31 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de2ba11..5ef2167 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,10 +76,12 @@ jobs: - name: Stopping timer if: ${{ !cancelled() }} id: timer_end + env: + TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +"%s")" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${{ steps.timer_start.outputs.TIMESTAMP_START }})" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})'" >> $GITHUB_OUTPUT echo "DURATION_PHRASE=$(date -ud "${TIMESTAMP_DURATION}" +"%M minutes %S seconds)" >> $GITHUB_OUTPUT echo "### $DATE_END" >> $GITHUB_STEP_SUMMARY echo "### $DURATION_PHRASE" >> $GITHUB_STEP_SUMMARY From 6ee01d18585deddadc4028ba20acb3f0e146f247 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 21:37:05 -0800 Subject: [PATCH 10/35] PG-31 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ef2167..06a0758 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: id: timer_start run: | echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_START=$(date +"%s")" >> $GITHUB_OUTPUT + echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_OUTPUT echo "### $DATE_START" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: IN PROGRESS" id: slack @@ -80,9 +80,9 @@ jobs: TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_END=$(date +"%s")" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})'" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=$(date -ud "${TIMESTAMP_DURATION}" +"%M minutes %S seconds)" >> $GITHUB_OUTPUT + echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$(date -ud '${TIMESTAMP_DURATION}' +'%M minutes %S seconds')" >> $GITHUB_OUTPUT echo "### $DATE_END" >> $GITHUB_STEP_SUMMARY echo "### $DURATION_PHRASE" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: Done" From 874338a944b770a9cbb79fd058de41d5a80c6932 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 22:11:00 -0800 Subject: [PATCH 11/35] PG-31 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06a0758..e44d2ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: run: | echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_OUTPUT - echo "### $DATE_START" >> $GITHUB_STEP_SUMMARY + echo "### START: ${DATE_START}" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -84,7 +84,7 @@ jobs: echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})" >> $GITHUB_OUTPUT echo "DURATION_PHRASE=$(date -ud '${TIMESTAMP_DURATION}' +'%M minutes %S seconds')" >> $GITHUB_OUTPUT echo "### $DATE_END" >> $GITHUB_STEP_SUMMARY - echo "### $DURATION_PHRASE" >> $GITHUB_STEP_SUMMARY + echo "### DURATION: ${DURATION_PHRASE}" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From d3126bcb254543e3ff930de4604e0a41ea806ed7 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 22:20:03 -0800 Subject: [PATCH 12/35] PG-31 --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e44d2ce..84f5b2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,7 @@ jobs: id: timer_start run: | echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_OUTPUT - echo "### START: ${DATE_START}" >> $GITHUB_STEP_SUMMARY + echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_ENV - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -76,15 +75,11 @@ jobs: - name: Stopping timer if: ${{ !cancelled() }} id: timer_end - env: - TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})" >> $GITHUB_OUTPUT + echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})" >> $GITHUB_ENV echo "DURATION_PHRASE=$(date -ud '${TIMESTAMP_DURATION}' +'%M minutes %S seconds')" >> $GITHUB_OUTPUT - echo "### $DATE_END" >> $GITHUB_STEP_SUMMARY - echo "### DURATION: ${DURATION_PHRASE}" >> $GITHUB_STEP_SUMMARY - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From f8e01c36061fd724c741521e2d1279b95d9e1425 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 23:00:11 -0800 Subject: [PATCH 13/35] PG-31 --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84f5b2a..2935f8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,8 +78,11 @@ jobs: run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION=(${TIMESTAMP_END} - ${TIMESTAMP_START})" >> $GITHUB_ENV - echo "DURATION_PHRASE=$(date -ud '${TIMESTAMP_DURATION}' +'%M minutes %S seconds')" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_ENV + echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 4404a56f4b1445d09bd66198a48f3f93206a13cf Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 23:11:04 -0800 Subject: [PATCH 14/35] PG-31 --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2935f8c..284675d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: id: timer_start run: | echo "DATE_START=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_ENV + echo "TIMESTAMP_START=$(date +'%s')" >> $GITHUB_OUTPUT - name: "Slack notification: IN PROGRESS" id: slack uses: slackapi/slack-github-action@v1.24.0 @@ -36,7 +36,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "CI Build Status for playground-matrix: :runner: *IN PROGRESS*\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": ":runner: CI Build Status for playground-matrix\nStatus: *IN PROGRESS*\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -75,6 +75,8 @@ jobs: - name: Stopping timer if: ${{ !cancelled() }} id: timer_end + env: + TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV @@ -96,7 +98,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* DONE :white_check_mark:\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": ":white_check_mark: CI Build Status for playground-matrix\nStatus: *DONE* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -117,7 +119,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*CI Build Status for playground-matrix:* FAILED :warning: \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": ":warning: CI Build Status for playground-matrix:\nStatus: *FAILED* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From 6249e3e499479f6e50f9fffce1862c300a0aef57 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 23:17:35 -0800 Subject: [PATCH 15/35] PG-31 --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 284675d..0043c2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,12 +79,14 @@ jobs: TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_ENV - echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV + # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_ENV + # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_ENV + # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_ENV + # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_ENV + # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 63507c71345f29e3f292ae4c3e7f1e9875dd5d8c Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 23:23:14 -0800 Subject: [PATCH 16/35] PG-31 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0043c2e..6ce1174 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,8 @@ jobs: echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_ENV + #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_ENV + echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_ENV # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_ENV # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_ENV # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_ENV From a0a931356aec4bc26a7a3964d09a83eb89aa66d5 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 2 Dec 2023 23:26:57 -0800 Subject: [PATCH 17/35] PG-31 --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ce1174..0f46150 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,13 +79,13 @@ jobs: TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_ENV - # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_ENV - #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_ENV - echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_ENV - # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_ENV - # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_ENV - # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_ENV + # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT + #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT - name: "Slack notification: Done" From d5a94d08d329c93fa90e03c3d6affb6795b6a9ea Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:13:24 -0800 Subject: [PATCH 18/35] PG-31 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f46150..f058e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,8 @@ jobs: # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT + #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT From b98467f83b244925f32d1b7d2e01ff2d9939572b Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:17:12 -0800 Subject: [PATCH 19/35] PG-31 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f058e7e..5bd9f8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,12 +83,13 @@ jobs: # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT + #echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT + #echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 9473f1ffab0c384694457e1e2a2f38373281b213 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:31:37 -0800 Subject: [PATCH 20/35] PG-31 --- .github/workflows/ci.yml | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bd9f8a..1e755e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,28 +50,28 @@ jobs: php_version: "8.2" php_extensions: intl version: 2.x - - uses: php-actions/phpunit@v3 - env: - XDEBUG_MODE: coverage - with: - version: "10.1" - php_version: "8.2" - php_extensions: xdebug - coverage_clover: clover.xml - coverage_text: true - - name: Make code coverage badge - uses: timkrase/phpunit-coverage-badge@v1.2.1 - with: - coverage_badge_path: output/coverage.svg - push_badge: false - - name: Git push to testing/develop branch - uses: peaceiris/actions-gh-pages@v3 - with: - publish_dir: ./output - publish_branch: testing/develop - github_token: ${{ secrets.GITHUB_TOKEN }} - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' + # - uses: php-actions/phpunit@v3 + # env: + # XDEBUG_MODE: coverage + # with: + # version: "10.1" + # php_version: "8.2" + # php_extensions: xdebug + # coverage_clover: clover.xml + # coverage_text: true + # - name: Make code coverage badge + # uses: timkrase/phpunit-coverage-badge@v1.2.1 + # with: + # coverage_badge_path: output/coverage.svg + # push_badge: false + # - name: Git push to testing/develop branch + # uses: peaceiris/actions-gh-pages@v3 + # with: + # publish_dir: ./output + # publish_branch: testing/develop + # github_token: ${{ secrets.GITHUB_TOKEN }} + # user_name: 'github-actions[bot]' + # user_email: 'github-actions[bot]@users.noreply.github.com' - name: Stopping timer if: ${{ !cancelled() }} id: timer_end @@ -88,8 +88,8 @@ jobs: # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - #echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 0dbcd035f1c2bca3878dc917eae6357157791c84 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:36:30 -0800 Subject: [PATCH 21/35] PG-31 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e755e2..ee1aa64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT + echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT @@ -88,7 +88,8 @@ jobs: # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$((${TIMESTAMP_START} - ${TIMESTAMP_END}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 @@ -103,7 +104,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": ":white_check_mark: CI Build Status for playground-matrix\nStatus: *DONE* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": ":white_check_mark: CI Build Status for playground-matrix\nStatus: *DONE* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*TIMESTAMP_START:* ${{ steps.timer_start.outputs.TIMESTAMP_START }}\n*TIMESTAMP_END:* ${{ steps.timer_end.outputs.TIMESTAMP_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From 577367a4b73cd0fbfe6b5cc4897ce81297759030 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:39:19 -0800 Subject: [PATCH 22/35] PG-31 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee1aa64..8c034b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,8 +88,8 @@ jobs: # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=$((${TIMESTAMP_START} - ${TIMESTAMP_END}))" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=$((${TIMESTAMP_START} - ${TIMESTAMP_END}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 @@ -125,7 +125,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": ":warning: CI Build Status for playground-matrix:\nStatus: *FAILED* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": ":warning: CI Build Status for playground-matrix:\nStatus: *FAILED* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*TIMESTAMP_START:* ${{ steps.timer_start.outputs.TIMESTAMP_START }}\n*TIMESTAMP_END:* ${{ steps.timer_end.outputs.TIMESTAMP_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From 0d936cb98dcc8abf2fd755a2731ea54b8f810937 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:44:29 -0800 Subject: [PATCH 23/35] PG-31 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c034b7..c01ecdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,8 +88,9 @@ jobs: # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=$((${TIMESTAMP_START} - ${TIMESTAMP_END}))" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT + # echo ::set-env name=DURATION_PHRASE::$(($TIMESTAMP_END - $TIMESTAMP_START)) + echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 From dcf8dd3e5c46b8d402f7b02f0728c159e3fe262c Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:49:30 -0800 Subject: [PATCH 24/35] PG-31 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c01ecdf..6a36c0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,8 +89,8 @@ jobs: # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - # echo ::set-env name=DURATION_PHRASE::$(($TIMESTAMP_END - $TIMESTAMP_START)) - echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE::$(($TIMESTAMP_END-$TIMESTAMP_START))" + # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 From aa8afe7389fc24f4d8d73bb652d41ae9139f582a Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:51:37 -0800 Subject: [PATCH 25/35] PG-31 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a36c0e..c383bc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,7 @@ jobs: # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE::$(($TIMESTAMP_END-$TIMESTAMP_START))" + echo "DURATION_PHRASE::$(($(date +'%s')-$TIMESTAMP_START))" # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" From dab44702c08318997ce3239acbaf45a4e252e98a Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:53:27 -0800 Subject: [PATCH 26/35] PG-31 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c383bc7..bf6623e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,7 @@ jobs: # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE::$(($(date +'%s')-$TIMESTAMP_START))" + echo "DURATION_PHRASE::$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" From 80bbc95439c1fe3e7b9fe532d7472f2b683b7da0 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:56:45 -0800 Subject: [PATCH 27/35] PG-31 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf6623e..331b38b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,15 +81,15 @@ jobs: echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - #echo "TIMESTAMP_DURATION=$(($(date +'%s') - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))"" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=${TIMESTAMP_START}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE::$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" From 2efc53da11c3fce773241764933cf367180e700c Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 00:59:33 -0800 Subject: [PATCH 28/35] PG-31 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 331b38b..a5be1cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))"" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT From ae8129d2897c40710d0c10f8083c75226b4ea153 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 01:02:41 -0800 Subject: [PATCH 29/35] PG-31 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5be1cb..f999942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,15 +81,15 @@ jobs: echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT #echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT + # echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" From c30c29937a68d87c2788d1153fefa3a8a3ffc3a4 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 01:07:11 -0800 Subject: [PATCH 30/35] PG-31 --- .github/workflows/ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f999942..89e535b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,18 +80,13 @@ jobs: run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT - #echo "TIMESTAMP_DURATION=$((2000 - 1800))" >> $GITHUB_OUTPUT - #echo "TIMESTAMP_DURATION=200" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=$((${TIMESTAMP_END} - ${TIMESTAMP_START}))" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 1ac5daa267156129b09b8afcd40da445f053ab3b Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 01:08:57 -0800 Subject: [PATCH 31/35] PG-31 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89e535b..5bdf00f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT From 23585666103a1f8c1aea8d11394b35d69e839733 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 01:14:28 -0800 Subject: [PATCH 32/35] PG-31 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bdf00f..f9aaf12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,13 +80,14 @@ jobs: run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT + # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT + echo "TIMESTAMP_DURATION_HOURS=$(($TIMESTAMP_DURATION/3600))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT # echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT - echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT + echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START)) seconds" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 with: From 86cf9f5cbecb3b76c52cc0ff032b5c48c51f0cbe Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 15:29:44 -0800 Subject: [PATCH 33/35] PG-31 --- .github/workflows/ci.yml | 178 +++++++++++++++++++++++++++++++-------- 1 file changed, 145 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9aaf12..15195ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,11 +32,51 @@ jobs: { "text": "CI Build Status for playground-matrix: IN PROGRESS\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": ":runner: CI Build Status for playground-matrix" + } + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Status:* IN PROGRESS" + }, + { + "type": "mrkdwn", + "text": "*Duration:* --" + } + ] + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + }, + { + "type": "mrkdwn", + "text": "*End:*\n--" + } + ] + }, { "type": "section", "text": { "type": "mrkdwn", - "text": ":runner: CI Build Status for playground-matrix\nStatus: *IN PROGRESS*\n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* \n*Duration:* \n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*PR:* ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -50,28 +90,28 @@ jobs: php_version: "8.2" php_extensions: intl version: 2.x - # - uses: php-actions/phpunit@v3 - # env: - # XDEBUG_MODE: coverage - # with: - # version: "10.1" - # php_version: "8.2" - # php_extensions: xdebug - # coverage_clover: clover.xml - # coverage_text: true - # - name: Make code coverage badge - # uses: timkrase/phpunit-coverage-badge@v1.2.1 - # with: - # coverage_badge_path: output/coverage.svg - # push_badge: false - # - name: Git push to testing/develop branch - # uses: peaceiris/actions-gh-pages@v3 - # with: - # publish_dir: ./output - # publish_branch: testing/develop - # github_token: ${{ secrets.GITHUB_TOKEN }} - # user_name: 'github-actions[bot]' - # user_email: 'github-actions[bot]@users.noreply.github.com' + - uses: php-actions/phpunit@v3 + env: + XDEBUG_MODE: coverage + with: + version: "10.1" + php_version: "8.2" + php_extensions: xdebug + coverage_clover: clover.xml + coverage_text: true + - name: Make code coverage badge + uses: timkrase/phpunit-coverage-badge@v1.2.1 + with: + coverage_badge_path: output/coverage.svg + push_badge: false + - name: Git push to testing/develop branch + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./output + publish_branch: testing/develop + github_token: ${{ secrets.GITHUB_TOKEN }} + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' - name: Stopping timer if: ${{ !cancelled() }} id: timer_end @@ -79,14 +119,6 @@ jobs: TIMESTAMP_START: ${{ steps.timer_start.outputs.TIMESTAMP_START }} run: | echo "DATE_END=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT - echo "TIMESTAMP_END=$(date +'%s')" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION=$(($(date +'%s')-$TIMESTAMP_START))" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION_HOURS=$((${TIMESTAMP_DURATION} / 3600))" >> $GITHUB_OUTPUT - echo "TIMESTAMP_DURATION_HOURS=$(($TIMESTAMP_DURATION/3600))" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION_MINUTES=$((${TIMESTAMP_DURATION} / 60))" >> $GITHUB_OUTPUT - # echo "TIMESTAMP_DURATION_SECONDS=$((${TIMESTAMP_DURATION} - (${TIMESTAMP_DURATION_MINUTES} * 60)))" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=${TIMESTAMP_DURATION_HOURS}:${TIMESTAMP_DURATION_MINUTES}:${TIMESTAMP_DURATION_SECONDS}" >> $GITHUB_OUTPUT - # echo "DURATION_PHRASE=${TIMESTAMP_DURATION}" >> $GITHUB_OUTPUT echo "DURATION_PHRASE=$(($(date +'%s')-$TIMESTAMP_START)) seconds" >> $GITHUB_OUTPUT - name: "Slack notification: Done" uses: slackapi/slack-github-action@v1.24.0 @@ -97,11 +129,51 @@ jobs: { "text": "CI Build Status for playground-matrix: DONE\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": ":white_check_mark: CI Build Status for playground-matrix" + } + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Status:* Success" + }, + { + "type": "mrkdwn", + "text": "*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + } + ] + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + }, + { + "type": "mrkdwn", + "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*PR:* ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + }, { "type": "section", "text": { "type": "mrkdwn", - "text": ":white_check_mark: CI Build Status for playground-matrix\nStatus: *DONE* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*TIMESTAMP_START:* ${{ steps.timer_start.outputs.TIMESTAMP_START }}\n*TIMESTAMP_END:* ${{ steps.timer_end.outputs.TIMESTAMP_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] @@ -118,11 +190,51 @@ jobs: { "text": "CI Build Status for playground-matrix: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": ":warning: CI Build Status for playground-matrix" + } + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Status:* FAILED" + }, + { + "type": "mrkdwn", + "text": "*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + } + ] + }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + }, + { + "type": "mrkdwn", + "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*PR:* ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + }, { "type": "section", "text": { "type": "mrkdwn", - "text": ":warning: CI Build Status for playground-matrix:\nStatus: *FAILED* \n*Start:* ${{ steps.timer_start.outputs.DATE_START }}\n*End:* ${{ steps.timer_end.outputs.DATE_END }}\n*TIMESTAMP_START:* ${{ steps.timer_start.outputs.TIMESTAMP_START }}\n*TIMESTAMP_END:* ${{ steps.timer_end.outputs.TIMESTAMP_END }}\n*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}\n*PR: *${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "*Build:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } } ] From 2203c4c649d1688f2516ce8189886dbcab8a3fde Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 15:44:46 -0800 Subject: [PATCH 34/35] PG-31 --- .github/workflows/ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15195ff..f22bfc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Status:* IN PROGRESS" + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" }, { "type": "mrkdwn", - "text": "*Duration:* --" + "text": "*End:*\n--" } ] }, @@ -57,11 +57,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + "text": "*Status:* IN PROGRESS" }, { "type": "mrkdwn", - "text": "*End:*\n--" + "text": ":hourglass: --" } ] }, @@ -141,11 +141,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Status:* Success" + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" }, { "type": "mrkdwn", - "text": "*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" } ] }, @@ -154,11 +154,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + "text": "*Status:* Success" }, { "type": "mrkdwn", - "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" + "text": ":hourglass: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" } ] }, @@ -202,11 +202,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Status:* FAILED" + "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" }, { "type": "mrkdwn", - "text": "*Duration:* ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" } ] }, @@ -215,11 +215,11 @@ jobs: "fields": [ { "type": "mrkdwn", - "text": "*Start:*\n${{ steps.timer_start.outputs.DATE_START }}" + "text": "*Status:* FAILED" }, { "type": "mrkdwn", - "text": "*End:*\n${{ steps.timer_end.outputs.DATE_END }}" + "text": ":hourglass: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" } ] }, From 9617597fcb1ef7a04efe603954e89479684084ad Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sun, 3 Dec 2023 16:16:22 -0800 Subject: [PATCH 35/35] PG-31 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f22bfc6..60d3993 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: }, { "type": "mrkdwn", - "text": ":hourglass: --" + "text": ":timer_clock: --" } ] }, @@ -158,7 +158,7 @@ jobs: }, { "type": "mrkdwn", - "text": ":hourglass: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + "text": ":timer_clock: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" } ] }, @@ -219,7 +219,7 @@ jobs: }, { "type": "mrkdwn", - "text": ":hourglass: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" + "text": ":timer_clock: ${{ steps.timer_end.outputs.DURATION_PHRASE }}" } ] },