Skip to content

Commit a38c837

Browse files
committed
entraid workflows
1 parent 760731e commit a38c837

File tree

4 files changed

+123
-101
lines changed

4 files changed

+123
-101
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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
69+
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+

.github/workflows/integration.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/snapshot.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)