Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,24 @@ jobs:
id: get_author
run: echo "::set-output name=author::$(git log -1 --pretty=format:'%an <%ae> sha1={%H}')"

- name: License Header Verification
working-directory: ci/it
run: |
LICENSE_COMMENT="// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0"
failed=false
while IFS= read -r -d '' file; do
file_content=$(< "$file")

if [[ "$file_content" != "$LICENSE_COMMENT"* ]]; then
echo "License header missing or incorrect in file: $file"
failed=true
fi
done < <(find . -type f -name "*.go" -print0)
if [ "$failed" = true ]; then
exit 1
fi

- name: Run integration tests
working-directory: ci/it
run: go test -v
Expand Down
3 changes: 3 additions & 0 deletions ci/it/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package it

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/base.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/test_dual_write_and_common_table.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/test_reading_clickhouse_tables.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/test_transparent_proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/test_two_pipelines.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
3 changes: 3 additions & 0 deletions ci/it/testcases/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Quesma, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

package testcases

import (
Expand Down
Loading