Integration-EntraID #39
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: Integration-EntraID | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
- '**/*.rst' | |
branches: | |
- main | |
- '[0-9].*' | |
pull_request: | |
branches: | |
- main | |
- '[0-9].*' | |
schedule: | |
- cron: '0 1 * * *' # nightly build | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build and Test EntraID | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./entraid | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout Jedis repository (tba_draft branch) | |
uses: actions/checkout@v2 | |
with: | |
repository: atakavci/jedis # Replace with the actual jedis repository URL | |
ref: ali/authx2 | |
path: jedis # Check out into a subdirectory named `jedis` so it's isolated | |
- name: Set up publishing to maven central | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.m2/repository | |
/var/cache/apt | |
key: entraid-${{hashFiles('**/pom.xml')}} | |
- name: Maven offline | |
run: | | |
mvn -q dependency:go-offline | |
- name: Build and install Core into local repo | |
run: | | |
mvn clean install -DskipTests # Skip tests for faster builds, but you can remove the flag if needed | |
working-directory: ./core | |
- name: Build and install Jedis supports TBA into local repo | |
run: | | |
cd jedis | |
mvn clean install -DskipTests # Skip tests for faster builds, but you can remove the flag if needed | |
- name: Build docs | |
run: | | |
mvn javadoc:jar | |
- name: Build with Maven | |
run: mvn compile | |
- name: Test with Maven | |
run: mvn test | |