plugeth-statediff/.gitea/workflows/test.yml
2023-07-06 14:09:26 +08:00

57 lines
1.4 KiB
YAML

name: Test
on:
pull_request:
branches: '*'
push:
branches:
- main
- ci-test
jobs:
unit-tests:
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
check-latest: true
- name: "Run DB container"
run: docker compose -f test/compose.yml up --wait --quiet-pull
- name: "Run tests"
run: go test -v ./...
integration-tests:
name: "Run integration tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
check-latest: true
# TODO: replace with release
- name: "Install stack-orchestrator"
uses: actions/checkout@v3
with:
repository: roysc/stack-orchestrator
ref: plugeth-testing
path: ./stack-orchestrator
- run: pip install ./stack-orchestrator
- name: "Run testnet stack"
run: ./scripts/integration-setup.sh
- name: "Clone system-tests"
uses: actions/checkout@v3
with:
repository: cerc-io/system-tests
ref: roy/dev
path: ./system-tests
- name: "Build docker image"
run: make docker-image
- name: "Run tests"
run: |
pytest -v \
--accounts-url="$GETH_BOOTNODE_URL/accounts.csv"