-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20435b4
commit d5ab087
Showing
2 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
name: Acceptance Tests (v4) | ||
|
||
on: | ||
schedule: | ||
- cron: "0 3 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
acceptance_tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 5 | ||
fail-fast: false | ||
matrix: | ||
pkg: [ | ||
kafka, | ||
kafkatopic, | ||
kafkaschema, | ||
account, | ||
cassandra, | ||
clickhouse, | ||
connectionpool, | ||
flink, | ||
pg, | ||
grafana, | ||
influxdb, | ||
m3db, | ||
mysql, | ||
opensearch, | ||
organization, | ||
project, | ||
redis, | ||
servicecomponent, | ||
staticip, | ||
serviceintegration, | ||
vpc | ||
] | ||
|
||
steps: | ||
- uses: softprops/turnstyle@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
same-branch-only: true | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- run: make test-acc | ||
env: | ||
AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }} | ||
AIVEN_PROJECT_NAME: ${{ secrets.AIVEN_PROJECT_NAME }} | ||
AIVEN_ORGANIZATION_NAME: ${{ secrets.AIVEN_ORGANIZATION_NAME }} | ||
AIVEN_ACCOUNT_NAME: ${{ secrets.AIVEN_ORGANIZATION_NAME }} | ||
PKG: ${{ matrix.pkg }} | ||
|
||
sweep: | ||
if: always() | ||
needs: acceptance_tests | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: softprops/turnstyle@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
same-branch-only: true | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: nick-invision/retry@v2 | ||
if: always() | ||
with: | ||
timeout_minutes: 15 | ||
max_attempts: 15 | ||
command: make sweep | ||
env: | ||
AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }} | ||
AIVEN_PROJECT_NAME: ${{ secrets.AIVEN_PROJECT_NAME }} | ||
AIVEN_ORGANIZATION_NAME: ${{ secrets.AIVEN_ORGANIZATION_NAME }} | ||
AIVEN_ACCOUNT_NAME: ${{ secrets.AIVEN_ORGANIZATION_NAME }} |
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