File tree 5 files changed +44
-30
lines changed
5 files changed +44
-30
lines changed Original file line number Diff line number Diff line change
1
+ name : Java CI
2
+
3
+ # Trigger workflow on push or pull_request
4
+ # Note - the first pull_request from a forked repo will need to be given approval to run
5
+ on : [push, pull_request]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Set up JDK 11
15
+ uses : actions/setup-java@v2
16
+ with :
17
+ java-version : ' 11'
18
+ distribution : ' adopt'
19
+
20
+ - name : Cache Maven Repo
21
+ uses : actions/cache@v2
22
+ with :
23
+ path : ~/.m2
24
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25
+ restore-keys : ${{ runner.os }}-m2
26
+
27
+ - name : Build Test and Verify
28
+ run : mvn -B -U clean install -Dmaven.javadoc.skip=true -Pdisplay-versions
29
+
30
+ - name : SonarCloud Scan
31
+ run : |
32
+ if ["$SONAR_TOKEN" == ""]; then
33
+ echo "Sonar secure variables NOT available"
34
+ else
35
+ echo "Sonar secure variables ARE available"
36
+ mvn -B sonar:sonar -Dsonar.projectKey="bordertech-java-config" -Dsonar.organization="bordertech-github" -Dsonar.host.url="https://sonarcloud.io"
37
+ fi
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Change log
2
2
3
3
## Release in-progress
4
+ * Switch from travis-ci to GitHub Actions #46
4
5
5
6
## 1.0.7
6
7
Original file line number Diff line number Diff line change 1
1
# Config
2
2
3
3
## Status
4
- [ ![ Build Status] ( https://travis-ci .com/BorderTech/java-config. svg?branch=master )] ( https://travis-ci .com/BorderTech/java-config )
4
+ [ ![ Build Status] ( https://github .com/BorderTech/java-config/actions/workflows/github-actions-build.yml/badge. svg )] ( https://github .com/BorderTech/java-config/actions/workflows/github-actions-build.yml )
5
5
[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-config&metric=alert_status )] ( https://sonarcloud.io/dashboard?id=bordertech-java-config )
6
6
[ ![ Reliability Rating] ( https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-config&metric=reliability_rating )] ( https://sonarcloud.io/dashboard?id=bordertech-java-config )
7
7
[ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-config&metric=coverage )] ( https://sonarcloud.io/dashboard?id=bordertech-java-config )
Original file line number Diff line number Diff line change 39
39
</issueManagement >
40
40
41
41
<ciManagement >
42
- <system >Travis CI </system >
43
- <url >https://travis-ci .com/BorderTech/java-config</url >
42
+ <system >Github Actions </system >
43
+ <url >https://github .com/BorderTech/java-config/actions </url >
44
44
</ciManagement >
45
45
46
46
<dependencies >
You can’t perform that action at this time.
0 commit comments