-
Notifications
You must be signed in to change notification settings - Fork 16
54 lines (40 loc) · 1.41 KB
/
integration.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
name: Integration Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Run Integration Tests
runs-on: ubuntu-latest
env:
FIREBLOCKS_API_KEY: ${{ secrets.FIREBLOCKS_API_KEY }}
FIREBLOCKS_API_URL: ${{ secrets.FIREBLOCKS_API_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Create private key file
run: echo "${{ secrets.FIREBLOCKS_PRIVATE_KEY }}" > fireblocks_secret.key
- name: Set environment variable for private key path
run: echo "FIREBLOCKS_PRIVATE_KEY_PATH=$(pwd)/fireblocks_secret.key" >> $GITHUB_ENV
- name: Install nightly Rust
run: rustup toolchain install nightly
- name: Install rustfmt for nightly
run: rustup component add rustfmt --toolchain nightly
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: clippy
uses: dtolnay/rust-toolchain@clippy
- name: Install Foundry
run: cargo install --git https://github.com/foundry-rs/foundry --profile release --locked forge cast chisel anvil
- name: docker
uses: docker-practice/actions-setup-docker@master
- name: Run make pr
run: make pr