-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (54 loc) · 2.31 KB
/
Copy pathintegration-test.yaml
File metadata and controls
61 lines (54 loc) · 2.31 KB
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
name: "integration-test"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
tests:
name: "Integration Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Set up environment"
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait --wait-timeout 1200
- name: "Wait for node to be populated"
run: "sleep 30s"
- name: "Install Node"
uses: actions/setup-node@v1
with:
node-version: '21.x'
- name: "Update Genesis block number"
run: |
source ./.env.IntegrationTest
echo "$UPDATE_GENESIS_BLOCK_QUERY" > temp.sql
PGPASSWORD=$DB_SECRET psql -h localhost -p 5432 -d $DB_NAME -U $DB_USER -f temp.sql
- name: "Install newman"
run: npm install -g newman
- name: "Setup Python"
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: "Install uv"
run: curl -LsSf https://astral.sh/uv/install.sh | sh
# - name: "Install mesh-cli"
# run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s
# https://github.com/coinbase/mesh-cli/issues/422
- name: "Install mesh-cli"
run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/v0.10.3/scripts/install.sh | sed -e 's/^REPO=.*/REPO=mesh-cli/' | sh -s
# - name: "Run tests"
# run: newman run ./postmanTests/rosetta-java.postman_collection.json -e postmanTests/Rosetta-java-env.postman_environment.json -r cli
- name: "Run construction API tests with schema validation"
run: |
cd ./tests/integration
~/.local/bin/uv run test_golden_examples.py \
-u http://localhost:8082 \
--network-id devkit \
--openapi ../../api/src/main/resources/rosetta-specifications-1.4.15/api.yaml
- name: "Run rosetta check:data tests"
run: ./bin/rosetta-cli check:data --configuration-file ./rosetta-cli-tests/data/byron_sample.json
- name: "Tear down environment"
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml down