Bump nightly #89
This file contains 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 public tests | |
on: | |
pull_request: | |
branches: [ "main" ] | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch `noir-json-parser` repo | |
uses: actions/checkout@v3 | |
- name: Fetch `noir-json-parser-tests` repo | |
run: | | |
cd ../ | |
git clone https://github.com/rontosoft/noir-json-parser-tests.git tests | |
- name: Install nargo as indicated in project .toml file | |
run: | | |
# extract version from toml: take the line with version, split it by ", echo 2nd element from that array | |
version=$(grep 'compiler_version[ ]*=[ ]*' Nargo.toml | awk -F '"' '{print $2}') | |
cd ../ | |
echo Downloading Nargo $version | |
# url="https://github.com/noir-lang/noir/releases/download/v${version}/nargo-x86_64-unknown-linux-gnu.tar.gz" | |
url="https://github.com/noir-lang/noir/releases/download/nightly-2023-12-06/nargo-x86_64-unknown-linux-gnu.tar.gz" | |
curl -L "$url" | tar -xz -C . | |
chmod +x nargo | |
- name: Run tests | |
run: | | |
cd ../ | |
mv noir-json-parser lib | |
cd tests | |
../nargo test --silence-warnings | |
# git cleanup: rename folder for auto-delete | |
cd ../ | |
mv lib noir-json-parser |