-
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.
feat: adding some CI to vite-hardhat
- Loading branch information
1 parent
0b662cd
commit 65de5d7
Showing
2 changed files
with
59 additions
and
22 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,39 @@ | ||
name: PR - vite-hardhat | ||
on: | ||
push: | ||
# pull_request: | ||
# paths: | ||
# - 'vite-hardhat/**' | ||
|
||
jobs: | ||
test-vite-hardhat: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: vite-hardhat | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Enable Corepack before setting up Node | ||
run: corepack enable | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.10.0 | ||
cache: 'yarn' | ||
|
||
- name: Install | ||
run: yarn --immutable | ||
shell: bash | ||
|
||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
# a github workflow that runs curl -L https://foundry.paradigm.xyz | bash then nargo codegen-verifier then nargo prove p | ||
|
||
name: Run Tests on PR | ||
name: PR - with-foundry | ||
on: | ||
pull_request: | ||
paths: | ||
- 'with-foundry/**' | ||
|
||
jobs: | ||
test: | ||
test-with-foundry: | ||
defaults: | ||
run: | ||
working-directory: with-foundry | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.11.0 | ||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.11.0 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Generate verifier contract | ||
run: | | ||
nargo codegen-verifier | ||
working-directory: with-foundry/circuits | ||
- name: Generate verifier contract | ||
run: | | ||
nargo codegen-verifier | ||
working-directory: with-foundry/circuits | ||
|
||
- name: Generate proof | ||
run: | | ||
nargo prove | ||
working-directory: with-foundry/circuits | ||
- name: Generate proof | ||
run: | | ||
nargo prove | ||
working-directory: with-foundry/circuits | ||
|
||
- name: Test with Foundry | ||
run: | | ||
forge test --optimize --optimizer-runs 5000 --evm-version london | ||
- name: Test with Foundry | ||
run: | | ||
forge test --optimize --optimizer-runs 5000 --evm-version london |