-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 1.43 KB
/
integration-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
name: "integration-test"
on:
push:
branches:
- main
pull_request:
jobs:
tests:
name: "Integration Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up environment"
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait
- 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: "Install rosetta-cli"
run: curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/master/scripts/install.sh | 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 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