Skip to content

Commit

Permalink
Merge branch 'main' into 8-import-maven-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
etsorens authored Feb 4, 2026
2 parents 3093f05 + 95e35c4 commit 09b56fc
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/main.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Test using maven",
"description": "Runs maven tests for the entire project",
"iconName": "maven",
"categories": ["Continuous integration", "Java", "Maven"]
}
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will run maven tests when changes are pushed on main, or whenever a pull request is initiated.

name: Maven Tests
on:
push:
branches: [main]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: [self-hosted]
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Run tests
run: mvn clean test
29 changes: 28 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>edu.ntnu.idi.idatt2003.g40.mappe</groupId>
<artifactId>mappe</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>

<properties>
<maven.compiler.source>25</maven.compiler.source>
Expand Down Expand Up @@ -56,4 +56,31 @@
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>
</plugin>

<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 09b56fc

Please sign in to comment.