Skip to content

Commit 0b57cc3

Browse files
committed
Add GitHub actions for Dependabot and Maven build
1 parent f26c360 commit 0b57cc3

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
permissions:
6+
contents: read
7+
8+
on:
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Git Checkout
21+
uses: actions/checkout@v6
22+
23+
- name: Setup JDK 17
24+
uses: actions/setup-java@v5
25+
with:
26+
java-version: '17'
27+
distribution: 'adopt'
28+
cache: maven
29+
30+
- name: Start Redis Server
31+
uses: supercharge/redis-github-action@v2
32+
33+
- name: Run Tests
34+
run: mvn clean test -Dgithub=true
35+

0 commit comments

Comments
 (0)