Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Dec 18, 2023
1 parent 65de5d7 commit f38a93e
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/actions/setup/action.yml
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
51 changes: 51 additions & 0 deletions .github/workflows/nightly.yaml
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
7 changes: 3 additions & 4 deletions .github/workflows/vite_hardhat.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: PR - vite-hardhat
on:
push:
# pull_request:
# paths:
# - 'vite-hardhat/**'
pull_request:
paths:
- 'vite-hardhat/**'

jobs:
test-vite-hardhat:
Expand Down

0 comments on commit f38a93e

Please sign in to comment.