-
Notifications
You must be signed in to change notification settings - Fork 8
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
c6c4aa0
commit bc770f1
Showing
1 changed file
with
47 additions
and
0 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,47 @@ | ||
name: Sanity test with YugabyteDB build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
yb_version: | ||
description: "YugabyteDB version to run tests against (build should be present in internal Quay registry)" | ||
required: false | ||
type: string | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
YB_DOCKER_IMAGE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.yb_version != '' && github.event.inputs.yb_version || secrets.YB_DOCKER_IMAGE }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Login to Quay.io | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_BOT_USERNAME }} | ||
password: ${{ secrets.QUAY_BOT_TOKEN }} | ||
- name: Pull docker image | ||
run: docker pull $YB_DOCKER_IMAGE | ||
- name: YugabyteDBDatatypesTest | ||
run: mvn clean test -Dtest=YugabyteDBDatatypesTest | ||
- name: YugabyteDBTabletSplitTest | ||
run: mvn clean test -Dtest=YugabyteDBTabletSplitTest | ||
- name: YugabyteDBEnumValuesTest | ||
run: mvn clean test -Dtest=YugabyteDBEnumValuesTest | ||
- name: YugabyteDBSnapshotTest | ||
run: mvn clean test -Dtest=YugabyteDBSnapshotTest |