-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65de5d7
commit f38a93e
Showing
3 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Install Yarn dependencies | ||
description: Installs the workspace's yarn dependencies and caches them | ||
inputs: | ||
project: | ||
description: The project to install dependencies for | ||
required: true | ||
version: | ||
description: The version of the project to install dependencies for | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Enable Corepack before setting up Node | ||
run: corepack enable | ||
shell: bash | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '${{ inputs.project }}/package.json' | ||
cache: 'yarn' | ||
|
||
- name: Install | ||
run: yarn --immutable | ||
shell: bash | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: ${{ inputs.version == 'latest' && 'stable' || inputs.version }} | ||
|
||
- name: Use Nargo | ||
run: nargo --version | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Nightly drift test | ||
on: | ||
push: | ||
paths: | ||
- 'vite-hardhat/**' | ||
# pull_request: | ||
# paths: | ||
# - 'vite-hardhat/**' | ||
|
||
jobs: | ||
test-drift-vite-hardhat: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: vite-hardhat | ||
strategy: | ||
matrix: | ||
version: ['latest'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up test environment | ||
uses: ./.github/actions/setup | ||
with: | ||
project: vite-hardhat | ||
version: ${{ matrix.version }} | ||
|
||
- name: Generate verifier contract | ||
run: | | ||
nargo codegen-verifier | ||
working-directory: vite-hardhat/circuits | ||
|
||
- name: Install test version | ||
run: | | ||
yarn add \ | ||
@noir-lang/noir_js@${{ matrix.version }} \ | ||
@noir-lang/backend_barretenberg@${{ matrix.version }} \ | ||
@noir-lang/noir_wasm@${{ matrix.version }} \ | ||
@noir-lang/source-resolver@${{ matrix.version }} \ | ||
@noir-lang/types@${{ matrix.version }} | ||
- name: 'Create env file' | ||
run: | | ||
touch .env | ||
echo SEPOLIA_ALCHEMY_KEY="${{ secrets.SEPOLIA_ALCHEMY_KEY }}" >> .env | ||
echo SEPOLIA_DEPLOYER_PRIVATE_KEY="${{ secrets.SEPOLIA_DEPLOYER_PRIVATE_KEY }}" >> .env | ||
echo MUMBAI_ALCHEMY_KEY"=${{ secrets.MUMBAI_ALCHEMY_KEY }}" >> .env | ||
echo MUMBAI_DEPLOYER_PRIVATE_KEY="${{ secrets.MUMBAI_DEPLOYER_PRIVATE_KEY }}" >> .env | ||
- name: Run test | ||
run: yarn test |
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