e2e tests without init container #157
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: | |
fail-fast: false | |
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 | |
sudo ./clickhouse install | |
- shell: bash | |
run: | | |
export RECIPE_CLICKHOUSE_BIN=clickhouse | |
export USE_TESTCONTAINERS=1 | |
- shell: bash | |
run: | | |
echo 'run suite ${{ matrix.suite }}' | |
gotestsum --rerun-fails --format github-actions --packages="./transfer_manager/go/tests/e2e/${{ matrix.suite }}/..." -- -timeout=30m | |
canon-tests: | |
needs: build | |
name: canon | |
strategy: | |
fail-fast: false | |
matrix: | |
suite: [parser, postgres] | |
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 | |
sudo ./clickhouse install | |
- shell: bash | |
run: | | |
export RECIPE_CLICKHOUSE_BIN=clickhouse | |
export USE_TESTCONTAINERS=1 | |
- shell: bash | |
run: | | |
echo 'run canon-suite ${{ matrix.suite }}' | |
gotestsum --rerun-fails --format github-actions --packages="./transfer_manager/go/tests/canon/${{ matrix.suite }}/..." -- -timeout=30m | |
pkg-tests: | |
needs: build | |
name: pkg | |
strategy: | |
max-parallel: 8 | |
fail-fast: false | |
matrix: | |
suite: [ | |
providers/mongo, providers/mysql, providers/sample, providers/postgres, providers/kafka, providers/kinesis, | |
transformer, predicate, dblog, functions, maplock, middlewares, parsequeue, predicate, util, stringutil, | |
serializer, schemaregistry, parsers/generic, parsers/scanner, parsers/registry | |
] | |
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 | |
sudo ./clickhouse install | |
- shell: bash | |
run: | | |
export RECIPE_CLICKHOUSE_BIN=clickhouse | |
export USE_TESTCONTAINERS=1 | |
- shell: bash | |
run: | | |
echo 'run pkg-suite ${{ matrix.suite }}' | |
gotestsum --rerun-fails --format github-actions --packages="./transfer_manager/go/pkg/${{ matrix.suite }}/..." -- -timeout=30m |