Rotki Nightly Tests #298
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: Rotki Nightly Tests | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- tests | |
jobs: | |
linux: | |
uses: ./.github/workflows/task_backend_tests.yml | |
if: ${{ github.repository == 'rotki/rotki' || github.event_name != 'schedule' }} | |
with: | |
os: ubuntu-20.04 | |
test_environment: nightly | |
secrets: inherit | |
macos: | |
uses: ./.github/workflows/task_backend_tests.yml | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
needs: ['linux'] | |
with: | |
os: macos-latest | |
test_environment: nightly | |
secrets: inherit | |
windows: | |
uses: ./.github/workflows/task_backend_tests.yml | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
with: | |
os: windows-latest | |
test_environment: nightly | |
secrets: inherit | |
e2e: | |
uses: ./.github/workflows/task_e2e_tests.yml | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
needs: [ 'macos' ] | |
secrets: inherit | |
unittest-frontend: | |
uses: ./.github/workflows/task_fe_unit_tests.yml | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
verify-link: | |
uses: ./.github/workflows/task_fe_external_links_verification.yml | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
notify: | |
name: 'Success check' | |
if: ${{ always() && (github.repository == 'rotki/rotki' || github.event_name != 'schedule') }} | |
needs: [ 'linux', 'macos', 'windows' ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Check if any task failed | |
run: | | |
pip install requests | |
data=($(echo "${{ toJSON(needs.*.result) }}" | sed 's/[][,]//g')) | |
for i in "${data[@]}" | |
do | |
if [[ $i == "failure" ]]; then | |
./.github/scripts/notifier.py --webhook ${{ secrets.WEBHOOK }} --run-id ${{ github.run_id }} --test | |
exit 1; | |
fi | |
done |