mirror of
https://github.com/frode-carlsen/cron.git
synced 2025-12-06 05:50:54 +03:00
feat: set up sonarcloud (#10)
* chore: set up sonarcloud * chore: copied tests for issue #7 to jodatime version * chore: moved to maven ci-friendly versions
This commit is contained in:
28
.github/workflows/maven.yml
vendored
28
.github/workflows/maven.yml
vendored
@@ -1,6 +1,11 @@
|
||||
name: Java CI
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -8,10 +13,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
version: 11
|
||||
- name: Build with Maven
|
||||
run: mvn package --file pom.xml
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: Build with Maven
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar --file pom.xml -DtrimStackTrace=false -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=fco -Dsonar.projectKey=frode-carlsen_cron
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>fc.cron</groupId>
|
||||
<artifactId>cron</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>${revision}${sha1}${changelist}</version>
|
||||
</parent>
|
||||
<artifactId>cron-java8</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>fc.cron</groupId>
|
||||
<artifactId>cron</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>${revision}${sha1}${changelist}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>cron-jodatime</artifactId>
|
||||
|
||||
14
pom.xml
14
pom.xml
@@ -5,10 +5,18 @@
|
||||
<groupId>fc.cron</groupId>
|
||||
<artifactId>cron</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>${revision}${sha1}${changelist}</version>
|
||||
<name>cron</name>
|
||||
<url>https://github.com/frode-carlsen/cron</url>
|
||||
|
||||
<properties>
|
||||
<revision>1.6</revision>
|
||||
<sha1 />
|
||||
<changelist>-SNAPSHOT</changelist>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache License Version 2.0</name>
|
||||
@@ -78,8 +86,4 @@
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user