plugeth-statediff/.gitea/workflows/test.yml

58 lines
1.4 KiB
YAML
Raw Normal View History

2023-07-05 10:15:05 +00:00
name: Test
on:
2023-07-05 10:21:06 +00:00
pull_request:
branches: '*'
push:
branches:
- main
- ci-test
2023-07-05 10:15:05 +00:00
jobs:
unit-tests:
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-07-05 17:19:58 +00:00
- uses: actions/setup-go@v3
2023-07-05 10:15:05 +00:00
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
2023-07-05 17:19:58 +00:00
- uses: actions/setup-go@v3
2023-07-05 10:15:05 +00:00
with:
go-version-file: 'go.mod'
check-latest: true
# TODO: replace with release
- name: "Install stack-orchestrator"
uses: actions/checkout@v3
with:
2023-07-06 04:26:48 +00:00
repository: roysc/stack-orchestrator
2023-07-05 10:15:05 +00:00
ref: plugeth-testing
path: ./stack-orchestrator
- name: "Run testnet stack"
env:
LACONIC_SO: ./laconic-so
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"
2023-07-05 10:21:06 +00:00
run: make docker-image
2023-07-05 10:15:05 +00:00
- name: "Run tests"
run: |
pytest -v \
--accounts-url="$GETH_BOOTNODE_URL/accounts.csv"