Build and Test using local environment #6807
This file contains hidden or 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: Build and Test using local environment | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| - '**/*.rst' | |
| branches: | |
| - master | |
| - '[0-9].*' | |
| - 'topic/**' | |
| pull_request: | |
| branches: | |
| - master | |
| - '[0-9].*' | |
| schedule: | |
| - cron: '0 1 * * *' # nightly build | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up publishing to maven central | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| - name: System setup | |
| run: | | |
| sudo apt update | |
| sudo apt install -y make | |
| make system-setup | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| /var/cache/apt | |
| key: jedis-${{hashFiles('**/pom.xml')}} | |
| - name: Maven offline | |
| run: | | |
| mvn -q dependency:go-offline | |
| - name: Run tests | |
| run: | | |
| export TEST_ENV_PROVIDER=oss-local | |
| make test-local | |
| env: | |
| JVM_OPTS: -Xmx3200m | |
| # Skip javadoc generation to speed up test runs; it is validated in unit-tests.yml | |
| MAVEN_OPTS: -Dmaven.javadoc.skip=true | |
| TERM: dumb |