Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Build
name: Build & Test

on: [push, pull_request]

permissions:
checks: write
contents: read
issues: read
pull-requests: write

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: ['temurin']
java: ['11', '17', '23']
name: Java ${{matrix.java}} (${{matrix.distribution}}) build & test
name: Build & Test Java ${{matrix.java}} (${{matrix.distribution}})

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout Repository
uses: actions/checkout@v7

- name: Setup Java
uses: actions/setup-java@v6
with:
distribution: ${{matrix.distribution}}
java-version: ${{matrix.java}}
cache: maven

- name: Build with Maven
run: mvn --batch-mode verify

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: "Test Results Java ${{matrix.java}} (${{matrix.distribution}})"
files: |
**/target/surefire-reports/*.xml
**/target/failsafe-reports/*.xml
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ jobs:
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout Repository
uses: actions/checkout@v7

- name: Setup Java
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'temurin'
- name: Publish package
cache: maven

- name: Publish Package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion CGMES_2.4.15_27JAN2020/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.lfenergy.sogno</groupId>
<artifactId>cim4j-parent</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion CGMES_3.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.lfenergy.sogno</groupId>
<artifactId>cim4j-parent</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.lfenergy.sogno</groupId>
<artifactId>cim4j-parent</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>pom</packaging>

<name>Java classes for CIM / CGMES</name>
Expand Down