Skip to content

Commit

Permalink
Merge pull request #2 from systemli/Add-basic-CI
Browse files Browse the repository at this point in the history
👷 Add basic CI
  • Loading branch information
0x46616c6b authored Dec 11, 2023
2 parents 139eb20 + 21012de commit b1641d3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Integration

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "maven"

- name: Download dependencies
run: mvn -B dependency:go-offline

- name: Test
run: mvn -B test

build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "maven"

- name: Download dependencies
run: mvn -B dependency:go-offline

- name: Build
run: mvn -B package -DskipTests
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<name>Keycloak Userli Storage Provider</name>
<description>Keycloak Userli Storage Provider</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<version.keycloak>23.0.1</version.keycloak>
</properties>
<dependencies>
Expand Down Expand Up @@ -46,7 +49,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.1</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -64,6 +67,11 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down

0 comments on commit b1641d3

Please sign in to comment.