Skip to content

Commit 2a0cec9

Browse files
authored
Merge pull request #2 from redis/workflows
Integration workflow
2 parents b63cc2f + 7a637b2 commit 2a0cec9

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/integration.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
3+
name: Integration
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
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Set up publishing to maven central
30+
uses: actions/setup-java@v2
31+
with:
32+
java-version: '8'
33+
distribution: 'temurin'
34+
- name: Cache dependencies
35+
uses: actions/cache@v2
36+
with:
37+
path: |
38+
~/.m2/repository
39+
/var/cache/apt
40+
key: entraid-${{hashFiles('**/pom.xml')}}
41+
- name: Maven offline
42+
run: |
43+
mvn -q dependency:go-offline
44+
- name: Build docs
45+
run: |
46+
mvn javadoc:jar
47+
- name: Build with Maven
48+
run: mvn compile
49+
- name: Test with Maven
50+
run: mvn test
51+
env:
52+
AZURE_CLIENT_ID: ${{secrets.AZURE_CLIENT_ID}}
53+
AZURE_AUTHORITY: ${{secrets.AZURE_AUTHORITY}}
54+
AZURE_CLIENT_SECRET: ${{secrets.AZURE_CLIENT_SECRET}}
55+
AZURE_CERT: ${{secrets.AZURE_CERT}}
56+
AZURE_PRIVATE_KEY: ${{secrets.AZURE_PRIVATE_KEY}}
57+
AZURE_REDIS_SCOPES: ${{secrets.AZURE_EDIS_SCOPES}}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.editorconfig
2+
target/
3+
.vscode/
4+
local.context

0 commit comments

Comments
 (0)