Skip to content

Commit 7f107c0

Browse files
Update CI
1 parent 5e10cad commit 7f107c0

3 files changed

Lines changed: 43 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
- name: Set up JDK 14
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 14
20+
- name: Cache SonarCloud packages
21+
uses: actions/cache@v1
22+
with:
23+
path: ~/.sonar/cache
24+
key: ${{ runner.os }}-sonar
25+
restore-keys: ${{ runner.os }}-sonar
26+
- name: Cache Maven packages
27+
uses: actions/cache@v1
28+
with:
29+
path: ~/.m2
30+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-m2
32+
- name: Build and analyze
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36+
run: mvn -Dgpg.skip=true -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

pom.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>engineer.nightowl</groupId>
77
<artifactId>sonos-api-java</artifactId>
8-
<version>0.0.20</version>
8+
<version>0.0.21-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>sonos-api-java</name>
@@ -17,7 +17,7 @@
1717
<connection>scm:git:git://github.com/nightowlengineer/sonos-api-java.git</connection>
1818
<developerConnection>scm:git:ssh://git@github.com/nightowlengineer/sonos-api-java.git</developerConnection>
1919
<url>https://github.com/nightowlengineer/sonos-api-java/tree/master</url>
20-
<tag>0.0.20</tag>
20+
<tag>HEAD</tag>
2121
</scm>
2222

2323
<developers>
@@ -49,8 +49,11 @@
4949

5050
<properties>
5151
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52-
<maven.compiler.source>1.8</maven.compiler.source>
53-
<maven.compiler.target>1.8</maven.compiler.target>
52+
<maven.compiler.source>14</maven.compiler.source>
53+
<maven.compiler.target>14</maven.compiler.target>
54+
<sonar.projectKey>nightowlengineer_sonos-api-java</sonar.projectKey>
55+
<sonar.organization>nightowlengineer</sonar.organization>
56+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
5457
</properties>
5558

5659
<dependencies>

0 commit comments

Comments
 (0)