Compare commits
15 Commits
main
...
beanstalk-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cc3d447be | ||
|
|
fd34b6de0c | ||
|
|
453b54bbe5 | ||
|
|
7e4008e949 | ||
|
|
4e92398550 | ||
|
|
3a2061e802 | ||
|
|
896d190e8d | ||
|
|
dbdbc3c5d8 | ||
|
|
975255f876 | ||
|
|
96c0a81dd8 | ||
|
|
87d90c5392 | ||
|
|
94198c948a | ||
|
|
c384c5ef4e | ||
|
|
461f0d5575 | ||
|
|
2e14234a89 |
31
.github/workflows/build.yml
vendored
Normal file
31
.github/workflows/build.yml
vendored
Normal 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
14
buildspec.yml
Normal 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
|
||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
server.port=5000
|
||||||
2
pom.xml
2
pom.xml
@@ -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>
|
||||||
Reference in New Issue
Block a user