name: Test on: pull_request: branches: '*' push: branches: - main jobs: unit-tests: name: Run unit tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version-file: go.mod check-latest: true - name: Run tests run: make test integration-tests: name: Run integration tests runs-on: ubuntu-latest env: GO111MODULE: on steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version-file: go.mod check-latest: true - name: Run DB container run: docker compose -f test/compose.yml up --wait # Run a sanity test against the fixture data # Complete integration tests are TODO - name: Run tests run: | cp ./environments/example.toml config.toml go run . --config config.toml \ --snapshot-mode postgres \ --leveldb-path ./fixture/chain2data \ --ancient-path ./fixture/chain2data/ancient \ stateSnapshot