Run bignum_example Tests on PR #69
This file contains hidden or 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: Run bignum_example Tests on PR | |
on: | |
pull_request: | |
paths: | |
- "bignum_example/**" | |
schedule: | |
- cron: "0 2 * * *" | |
workflow_dispatch: | |
jobs: | |
test: | |
defaults: | |
run: | |
working-directory: bignum_example | |
permissions: | |
issues: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nargo | |
uses: noir-lang/noirup@v0.1.2 | |
with: | |
toolchain: stable | |
- name: Run Noir unit tests | |
working-directory: bignum_example/circuits | |
run: | | |
nargo test | |
- name: Create issue on failure (nightly) | |
if: failure() && github.event_name == 'schedule' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.issues.create({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
title: '[Nightly] bignum_example workflow failed', | |
body: `The nightly bignum_example workflow failed. Please investigate.\n\n/cc @noir-lang/developerrelations`, | |
labels: ['nightly', 'bug'] | |
}) |