Skip to content

Commit 6d74546

Browse files
committed
entra id integration and snapshot workflows
1 parent 9583ad7 commit 6d74546

File tree

4 files changed

+128
-6
lines changed

4 files changed

+128
-6
lines changed

.github/workflows/core_integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
path: |
4141
~/.m2/repository
4242
/var/cache/apt
43-
key: entraid-${{hashFiles('**/pom.xml')}}
43+
key: core-${{hashFiles('**/pom.xml')}}
4444
- name: Maven offline
4545
run: |
4646
mvn -q dependency:go-offline
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
3+
name: Integration-EntraID
4+
5+
on:
6+
push:
7+
paths-ignore:
8+
- 'docs/**'
9+
- '**/*.md'
10+
- '**/*.rst'
11+
branches:
12+
- master
13+
- '[0-9].*'
14+
pull_request:
15+
branches:
16+
- master
17+
- '[0-9].*'
18+
schedule:
19+
- cron: '0 1 * * *' # nightly build
20+
workflow_dispatch:
21+
22+
jobs:
23+
24+
build:
25+
name: Build and Test EntraID
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
working-directory: ./entraid
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Checkout Jedis repository (tba_draft branch)
33+
uses: actions/checkout@v2
34+
with:
35+
repository: atakavci/jedis # Replace with the actual jedis repository URL
36+
ref: ali/authx2
37+
path: jedis # Check out into a subdirectory named `jedis` so it's isolated
38+
39+
- name: Set up publishing to maven central
40+
uses: actions/setup-java@v2
41+
with:
42+
java-version: '8'
43+
distribution: 'temurin'
44+
- name: Cache dependencies
45+
uses: actions/cache@v2
46+
with:
47+
path: |
48+
~/.m2/repository
49+
/var/cache/apt
50+
key: entraid-${{hashFiles('**/pom.xml')}}
51+
- name: Maven offline
52+
run: |
53+
mvn -q dependency:go-offline
54+
- name: Build and install Core into local repo
55+
run: |
56+
mvn clean install -DskipTests # Skip tests for faster builds, but you can remove the flag if needed
57+
working-directory: ./core
58+
- name: Build and install Jedis supports TBA into local repo
59+
run: |
60+
cd jedis
61+
mvn clean install -DskipTests # Skip tests for faster builds, but you can remove the flag if needed
62+
- name: Build docs
63+
run: |
64+
mvn javadoc:jar
65+
- name: Build with Maven
66+
run: mvn compile
67+
- name: Test with Maven
68+
run: mvn test
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
3+
name: Publish Snapshot-EntraID
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- '[0-9].x'
10+
workflow_dispatch:
11+
12+
jobs:
13+
14+
snapshot:
15+
name: Deploy Snapshot-EntraID
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./entraid
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Checkout Jedis repository (tba_draft branch)
23+
uses: actions/checkout@v2
24+
with:
25+
repository: atakavci/jedis # Replace with the actual jedis repository URL
26+
ref: ali/authx2
27+
path: jedis # Check out into a subdirectory named `jedis` so it's isolated
28+
29+
- name: Set up publishing to maven central
30+
uses: actions/setup-java@v2
31+
with:
32+
java-version: '8'
33+
distribution: 'temurin'
34+
server-id: ossrh
35+
server-username: MAVEN_USERNAME
36+
server-password: MAVEN_PASSWORD
37+
- name: Cache dependencies
38+
uses: actions/cache@v2
39+
with:
40+
path: |
41+
~/.m2/repository
42+
/var/cache/apt
43+
key: entraid-${{hashFiles('**/pom.xml')}}
44+
- name: Maven offline
45+
run: |
46+
mvn -q dependency:go-offline
47+
- name: deploy
48+
run: |
49+
mvn --no-transfer-progress \
50+
-DskipTests deploy
51+
env:
52+
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
53+
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}
54+

entraid/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22

3-
<parent>
4-
<groupId>redis.clients.authentication</groupId>
5-
<artifactId>redis-authx</artifactId>
6-
<version>0.1.0</version>
3+
<parent>
4+
<groupId>org.sonatype.oss</groupId>
5+
<artifactId>oss-parent</artifactId>
6+
<version>7</version>
77
</parent>
88

99
<modelVersion>4.0.0</modelVersion>
@@ -70,7 +70,7 @@
7070
<dependency>
7171
<groupId>redis.clients</groupId>
7272
<artifactId>jedis</artifactId>
73-
<version>5.3.0-SNAPSHOT</version>
73+
<version>5.3.1-SNAPSHOT</version>
7474
<scope>test</scope>
7575
</dependency>
7676
<dependency>

0 commit comments

Comments
 (0)