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: 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 |