Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Dec 4, 2024
1 parent c0bc99c commit 20191f2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
MINIMUM_NOIR_VERSION: v0.37.0

jobs:
noir-version-list:
Expand All @@ -18,11 +19,9 @@ jobs:
steps:
- name: Checkout sources
id: get_versions
run: |
export MINIMUM_SUPPORTED_VERSION=v0.37.0
run: |
# gh returns the Noir releases in reverse chronological order so we keep all releases published after the minimum supported version.
VERSIONS=$(gh release list -R noir-lang/noir --exclude-pre-releases --json tagName -q 'map(.tagName) | index(env.MINIMUM_SUPPORTED_VERSION) as $index | if $index then .[0:$index+1] else [env.MINIMUM_SUPPORTED_VERSION] end')
VERSIONS=$(gh release list -R noir-lang/noir --exclude-pre-releases --json tagName -q 'map(.tagName) | index(env.MINIMUM_NOIR_VERSION) as $index | if $index then .[0:$index+1] else [env.MINIMUM_NOIR_VERSION] end')
echo "versions=$VERSIONS"
echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
env:
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:
- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: 0.37.0
toolchain: env.MINIMUM_NOIR_VERSION

- name: Run formatter
run: nargo fmt --check
Expand Down

0 comments on commit 20191f2

Please sign in to comment.