e2e tests without init container #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Build and Test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go 1.22.0 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.0" | |
- shell: bash | |
run: | | |
make build | |
test-cli: | |
needs: build | |
name: CLI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go 1.22.0 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.0" | |
- shell: bash | |
run: | | |
go install gotest.tools/gotestsum@latest | |
- shell: bash | |
run: | | |
make test | |
e2e-tests: | |
needs: build | |
name: e2e | |
strategy: | |
matrix: | |
suite: [pg2pg, pg2ch, kafka2ch, mongo2ch] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go 1.22.0 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.0" | |
- shell: bash | |
run: | | |
go install gotest.tools/gotestsum@latest | |
- shell: bash | |
run: | | |
curl https://clickhouse.com/ | sh | |
- shell: bash | |
run: | | |
USE_TESTCONTAINERS=1 gotestsum --rerun-fails --format github-actions --packages="./transfer_manager/go/tests/e2e/${{ matrix.suite }}/..." -- -timeout=30m |