[DBZ] Enhance GitHub actions for sanity checks #1137
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 all tests for complete sanity | |
on: | |
push: | |
branches: | |
- main | |
- 1.7 | |
pull_request: | |
branches: | |
- main | |
- 1.7 | |
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 | |
env: | |
YB_DOCKER_IMAGE: ${{ secrets.YB_DOCKER_IMAGE }} | |
run: docker pull $YB_DOCKER_IMAGE | |
- name: Sanity Test that code compiles and tests pass. | |
env: | |
YB_DOCKER_IMAGE: ${{ secrets.YB_DOCKER_IMAGE }} | |
run: mvn clean test -Dtest=!YugabyteDBColocatedTablesTest#shouldWorkWithMixOfColocatedAndNonColocatedTables | |
- name: Flaky test YugabyteDBColocatedTablesTest#shouldWorkWithMixOfColocatedAndNonColocatedTables | |
env: | |
YB_DOCKER_IMAGE: ${{ secrets.YB_DOCKER_IMAGE }} | |
run: mvn clean test -Dtest=YugabyteDBColocatedTablesTest#shouldWorkWithMixOfColocatedAndNonColocatedTables |