.github/workflows/tests-integration-nightly.yml #577
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
name: Integration tests nightly | |
on: | |
schedule: | |
# run this workflow every day at 2:00 AM UTC | |
- cron: '0 2 * * *' | |
jobs: | |
tests-integration: | |
name: Run checks | |
runs-on: goth2 | |
steps: | |
- run: rm -rf /root/.cache/ | |
- run: rm -rf /tmp/goth-tests/ | |
- run: apt-get update | |
- run: apt install -y python3.10-venv | |
- uses: actions/checkout@v3 | |
- name: Run tests action | |
id: tests | |
uses: './.github/actions/integration-tests-goth' | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Send Discord notification on failure | |
uses: Ilshidur/[email protected] | |
if: steps.tests.outcome != 'success' # continue-on-error doesn't work with `failure()` https://github.com/actions/toolkit/issues/1034 | |
env: | |
BRANCH_NAME: main | |
DISCORD_AVATAR: https://i.imgur.com/EOX16Mx.jpg | |
DISCORD_USERNAME: "Goth night watch" | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
REPO_NAME: ${{ github.repository }} | |
WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
with: | |
# <@&717623005911580713> = @sdk-integrations | |
args: "<@&717623005911580713> Goth nightly run failed for `{{ REPO_NAME }}` on branch `{{ BRANCH_NAME }}`! <{{ WORKFLOW_URL }}>" | |
- name: Upload test logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: goth-logs | |
path: /tmp/goth-tests |