Skip to content

feat: refactor, generics, bugfixes, and other nits #73

feat: refactor, generics, bugfixes, and other nits

feat: refactor, generics, bugfixes, and other nits #73

Workflow file for this run

name: main
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
changed-files:
runs-on: ubuntu-latest
outputs:
any_nr_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v44
id: changed-files
with:
files: |
packages/**/*.{nr,toml}
Nargo.toml
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: noir-lang/[email protected]
with:
toolchain: 0.39.0
- run: bun i
- run: bun fmt
test:
needs: changed-files
if: needs.changed-files.outputs.any_nr_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: noir-lang/[email protected]
with:
toolchain: 0.39.0
- run: nargo test