-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (40 loc) · 1.09 KB
/
test.yaml
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
name: Test Cryptex Contracts
on:
push:
branches: [ master, develop ]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
MAINNET_API_URL: ${{ secrets.MAINNET_API_URL }}
ARBITRUM_API_URL: ${{ secrets.ARBITRUM_API_URL }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: borales/[email protected]
with:
cmd: install
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
/home/runner/.config/.foundry/bin/foundryup
- name: Create .env File
run: cp .env.sample .env
- name: Set Alchemy Key
run: sed -i~ "s/<alchemy_key>/${ALCHEMY_KEY}/g" .env
- name: Build Contracts
run: yarn build
- name: Run Hardhat Tests
run: yarn test
- name: Remove Cache
run: rm -rf cache
- name: Run Forge tests
run: yarn ftest