15 Commits

Author SHA1 Message Date
Sofiene BEN KHEMIS
6cc3d447be Sonar Fix 2021-05-10 14:30:30 +02:00
Sofiene BEN KHEMIS
fd34b6de0c Sonar Fix 2021-05-10 14:27:33 +02:00
Sofiene BEN KHEMIS
453b54bbe5 Sonar Fix 2021-05-10 14:26:26 +02:00
Sofiene BEN KHEMIS
7e4008e949 Sonar Fix 2021-05-10 14:25:18 +02:00
Sofiene BEN KHEMIS
4e92398550 Update build.yml 2021-05-10 14:20:21 +02:00
Sofiene BEN KHEMIS
3a2061e802 Sonar Fix 2021-05-10 14:18:05 +02:00
Sofiene BEN KHEMIS
896d190e8d Remove Pom for Sonar 2021-05-10 11:18:24 +02:00
Sofiene BEN KHEMIS
dbdbc3c5d8 Remove Pom for Sonar 2021-05-10 11:17:05 +02:00
Sofiene BEN KHEMIS
975255f876 update 2021-05-10 11:13:23 +02:00
Sofiene BEN KHEMIS
96c0a81dd8 Sonar properties 2021-05-10 10:47:14 +02:00
Sofiene BEN KHEMIS
87d90c5392 removing sonar.projectKey 2021-05-10 10:41:40 +02:00
Sofiene BEN KHEMIS
94198c948a Add Sonar and GitActions 2021-05-10 10:27:02 +02:00
Sofiene BEN KHEMIS
c384c5ef4e Add server port 2021-05-09 21:18:37 +02:00
Sofiene BEN KHEMIS
461f0d5575 Update buildspec.yml 2021-05-09 21:04:13 +02:00
Sofiene BEN KHEMIS
2e14234a89 Java 8 compilation 2021-05-09 20:58:14 +02:00
5 changed files with 57 additions and 1 deletions

31
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: SonarCloud
on:
push:
branches:
- beanstalk-java8
jobs:
build:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Analyze with SonarCloud
run: mvn -B verify sonar:sonar -Dsonar.projectKey=sofieneBK_hands-on-hexagonal-architecture-with-spring-boot -Dsonar.organization=sofienebk -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

14
buildspec.yml Normal file
View File

@@ -0,0 +1,14 @@
version: 0.2
phases:
build:
commands:
- echo Entered the build phase...
- mvn clean package
post_build:
commands:
- echo Build completed successfully
artifacts:
files:
- ms-launcher/target/ms-launcher-1.0-SNAPSHOT.jar
discard-paths: yes

View File

@@ -63,6 +63,16 @@
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@@ -0,0 +1 @@
server.port=5000

View File

@@ -21,7 +21,7 @@
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<properties> <properties>
<java.version>11</java.version> <java.version>8</java.version>
</properties> </properties>
</project> </project>