-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (49 loc) · 1.65 KB
/
hardhat-and-foundry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: hardhat-and-foundry
on: [push]
jobs:
foundry:
name: foundry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
env:
BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
registry-url: https://registry.npmjs.org
scope: '@kreskolabs'
- run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- run: cp .env.example .env
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: bun install --yarn
- name: Run Foundry Tests
run: forge test --no-match-path '*/locals/*' -v
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
RPC_ARBITRUM_ALCHEMY: https://arb-mainnet.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}
hardhat:
name: hardhat
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
env:
BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
registry-url: https://registry.npmjs.org
scope: '@kreskolabs'
- run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- run: cp .env.example .env
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: forge install
- run: bun install --yarn
- run: bun run hh:test:ci
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
MNEMONIC_DEVNET: ${{ secrets.MNEMONIC_DEVNET }}