Run base64_example Tests on PR #6
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 base64_example Tests on PR | |
on: | |
pull_request: | |
paths: | |
- "lib_examples/base64_example/**" | |
schedule: | |
- cron: "0 2 * * *" | |
workflow_dispatch: | |
jobs: | |
test: | |
defaults: | |
run: | |
working-directory: lib_examples/base64_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 | |
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] base64_example workflow failed', | |
body: `The nightly base64_example workflow failed. Please investigate.\n\n/cc @noir-lang/developerrelations`, | |
labels: ['nightly', 'bug'] | |
}) |