Skip to content

Commit

Permalink
Feat: nightly nayduck tests check (#9988)
Browse files Browse the repository at this point in the history
Adding a check for Nayduck latest nightly run results.
Non-blocking for now
  • Loading branch information
andrei-near authored Oct 24, 2023
1 parent fa1cfa1 commit dbd2eef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/nightly_nayduck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
pull_request:
merge_group:

jobs:
nightly_nayduck_tests:
runs-on: "ubuntu-latest"
timeout-minutes: 10

steps:
- name: Install JQ json processor
run: sudo apt install jq

# In this step we get the latest nightly results from the nayduck server
# and check if there are any non-passing tests
- name: Check if there are any non-passing tests
run: |
NIGHTLY_RESULTS=$(curl -s https://nayduck.near.org/api/nightly-events)
UNSUCCESSFUL_TESTS=$(jq -e '.tests | .[][] | select(.[2] != "PASSED" ) ' <<< ${NIGHTLY_RESULTS} )
if [ -z "$UNSUCCESSFUL_TESTS" ] ; then echo "Nightly Nayduck tests OK"; \
else echo "Nightly Nayduck tests are failing" && exit 1; fi

0 comments on commit dbd2eef

Please sign in to comment.