-
Notifications
You must be signed in to change notification settings - Fork 176
116 lines (95 loc) · 3.28 KB
/
integration-tests.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: integration-tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Add LocalStack AWS Credentials
run: |
mkdir -p ~/.aws
touch ~/.aws/credentials
echo '[default]' >> ~/.aws/credentials
echo 'aws_access_key_id=localstack' >> ~/.aws/credentials
echo 'aws_secret_access_key=localstack' >> ~/.aws/credentials
- name: Set Test Profile to default
run: |
aws configure --profile test-profile set region us-east-1
aws configure --profile test-profile set source_profile default
- uses: actions/setup-go@v3
with:
go-version: "1.21" # The Go version to download (if necessary) and use.
- run: go version
- name: Checkout EigenDA
uses: actions/checkout@v3
- name: Update Submodule Commits
run: |
git submodule update --init --recursive
# TODO: add back geth if we need it in tests
# - name: Install geth
# run: |
# sudo add-apt-repository -y ppa:ethereum/ethereum
# sudo apt-get update
# sudo apt-get -y install ethereum
# - name: Get geth version
# run: geth version
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-293fad73670b7b59ca901c7f2105bf7a29165a90
- name: Install graph cli
run: |
yarn global add @graphprotocol/[email protected]
- name: Get Forge version
run: forge --version
- name: Build contracts
run: |
cd contracts && forge build
# TODO: add back DA contracts if we will need them in tests.
# - name: Compile contracts
# run: |
# make compile-el
# make compile-dl
- name: Churner
run: go test -v ./operators/churner/tests
- name: Indexer
run: go test -v ./core/indexer
- name: Node Plugin
run: go test -v ./node/plugin/tests
- name: eigenda-client
run: go test -v ./api/clients --testnet-integration
- name: Graph Indexer
run: make build && go test -v ./core/thegraph
- name: Inabox E2E
run: make build && cd inabox && make run-e2e
- name: Save logs
if: always()
uses: actions/upload-artifact@v3
with:
name: inabox-logs
path: |
inabox/testdata/*/logs/
inabox/testdata/*/deploy.log
- name: Send GitHub Action trigger data to Slack workflow
if: ${{ failure() }}
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"workflow": "${{ github.workflow }}",
"action_name": "${{ github.action }}",
"ref": "${{ github.ref_name }}",
"actor": "${{ github.triggering_actor }}",
"event_name": "${{ github.event_name }}",
"run_id": "https://github.com/Layr-Labs/eigenda/actions/runs/${{ github.run_id }}",
"commit_sha": "https://github.com/Layr-Labs/eigenda/commit/${{ github.sha }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}