Skip to content

Commit

Permalink
ci: pin noir version
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Oct 28, 2024
1 parent 1277637 commit 337f63d
Showing 1 changed file with 17 additions and 35 deletions.
52 changes: 17 additions & 35 deletions .github/workflows/noir.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: noir
name: Noir CI

on:
pull_request:
Expand All @@ -11,47 +11,29 @@ permissions:
contents: read

jobs:
fmt-noir:
noir:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Nargo
uses: noir-lang/noirup@v0.1.3
with:
toolchain: nightly

- name: Create `.nargo/bin` directory
shell: bash
run: |
mkdir -p $HOME/.nargo/bin
echo "${HOME}/.nargo/bin" >> $GITHUB_PATH
- name: Install Noir
run: |
curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/noirup | bash -s -- \
-C 51ae1b324cd73fdb4fe3695b5d483a44b4aff4a9
- name: Run nargo fmt
run: nargo fmt --check

check-noir:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Nargo
uses: noir-lang/noirup@v0.1.3
with:
toolchain: nightly


- name: Run nargo check
run: nargo check --silence-warnings

test-noir:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Nargo
uses: noir-lang/noirup@v0.1.3
with:
toolchain: nightly

run: nargo check --silence-warnings

- name: Run nargo test
run: nargo test --silence-warnings
run: nargo test --silence-warnings

0 comments on commit 337f63d

Please sign in to comment.