-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add manual integration tests GH workflow (#665)
* add manual integration tests GH workflow * add nightly integration tests * update with review comments Co-authored-by: Marius Poke <[email protected]>
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# manually run full integration test suite | ||
# all tests are run sequentially | ||
name: manual-integration-main | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
manual-integration-main: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.18' | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Checkout LFS objects | ||
run: git lfs checkout | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.18" # The Go version to download (if necessary) and use. | ||
|
||
- name: Integration tests | ||
run: make test-integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Run integration tests nightly on main | ||
|
||
# !! Relevant changes to this file should be propagated manual-integration.yml | ||
|
||
name: nightly-integration-main | ||
on: | ||
schedule: | ||
# run every day at 03:00 UTC | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
- cron: '0 3 * * *' | ||
|
||
jobs: | ||
nightly-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.18' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Integration tests | ||
run: make test-integration | ||
|
||
|
||
nightly-test-fail: | ||
needs: nightly-test | ||
if: ${{ failure() }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify Slack on failure | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
BRANCH: ${{ github.ref_name }} | ||
RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
COMMITS_URL: "${{ github.server_url }}/${{ github.repository }}/commits/${{ github.ref_name }}" | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "❗Integration tests failed❗", | ||
"emoji": true | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": ":skull: Nightly E2E tests for `${{ env.BRANCH }}` failed.\n\nSee the <${{ env.RUN_URL }}|run details> and the <${{ env.COMMITS_URL }}|latest commits> possibly related to the failure." | ||
} | ||
} | ||
] | ||
} |