Skip to content

Commit

Permalink
ci: setup build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Jul 17, 2024
1 parent 540878a commit dc8409b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --fail-at-end
- name: Publish Test Report
if: ${{ always() }}
uses: scacap/action-surefire-report@v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Add to your `pom.xml`:

### [Petstore model](https://github.com/jhannes/openapi-generator-java-lombok/tree/main/snapshotTests/snapshot/petstore/src/main/java/io/github/jhannes/openapi/petstore/model)

### [Polymorphism](https://github.com/jhannes/openapi-generator-java-lombok/blob/main/snapshotTests/snapshot/input/poly.yaml)
### [Polymorphism](https://github.com/jhannes/openapi-generator-java-lombok/blob/main/snapshotTests/input/poly.yaml)

```yaml
components:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>openapi-generator-lombok</artifactId>
<artifactId>openapi-generator-java-lombok</artifactId>
<name>openapi-generator-lombok</name>
<groupId>io.github.jhannes.openapi</groupId>
<description>
Expand Down

0 comments on commit dc8409b

Please sign in to comment.