Skip to content

Commit

Permalink
parse commit time locally
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Jul 7, 2021
1 parent 6a279f3 commit 383ad6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@ jobs:
GITHUB_JOB_NAME: functional-tests
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
GIT_COMMITTED_AT=$(git log -1 --format=%ct origin)
docker-compose exec -T \
-e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \
-e GIT_BRANCH=${{ env.GIT_BRANCH }} \
-e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \
-e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \
-e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \
-e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \
-e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\
api test/test-coverage.sh
Expand Down Expand Up @@ -180,13 +181,14 @@ jobs:
GITHUB_JOB_NAME: unit-tests
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
GIT_COMMITTED_AT=$(git log -1 --format=%ct origin)
docker-compose exec -T \
-e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \
-e GIT_BRANCH=${{ env.GIT_BRANCH }} \
-e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \
-e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \
-e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \
-e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \
-e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\
api test/test-coverage.sh
cleanup-and-notify:
Expand All @@ -205,13 +207,14 @@ jobs:
GIT_BRANCH: ${{ github.ref }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
GIT_COMMITTED_AT=$(git log -1 --format=%ct origin)
docker-compose exec -T \
-e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \
-e GIT_BRANCH=${{ env.GIT_BRANCH }} \
-e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \
-e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \
-e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \
-e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \
-e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\
api test/upload-coverage.sh
- name: Notify Slack
Expand Down

0 comments on commit 383ad6b

Please sign in to comment.