diff --git a/.github/workflows/ci.assignment.yml b/.github/workflows/ci.assignment.yml
new file mode 100644
index 0000000..32b8c58
--- /dev/null
+++ b/.github/workflows/ci.assignment.yml
@@ -0,0 +1,41 @@
+name: Build
+on:
+ push:
+ branches: [main, dev]
+ paths:
+ - "tapas-tasks/**"
+ pull_request:
+ branches: [main, dev]
+ paths:
+ - "tapas-tasks/**"
+
+ workflow_dispatch:
+jobs:
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Set up JDK 11
+ 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: Build and analyze
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: mvn -f assignment/pom.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=SCS-ASSE-FS21-Group1_tapas
diff --git a/.github/workflows/ci.tapas-tasks.yml b/.github/workflows/ci.tapas-tasks.yml
new file mode 100644
index 0000000..c3970a0
--- /dev/null
+++ b/.github/workflows/ci.tapas-tasks.yml
@@ -0,0 +1,41 @@
+name: Build
+on:
+ push:
+ branches: [main, dev]
+ paths:
+ - "tapas-tasks/**"
+ pull_request:
+ branches: [main, dev]
+ paths:
+ - "tapas-tasks/**"
+
+ workflow_dispatch:
+jobs:
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Set up JDK 11
+ 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: Build and analyze
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: mvn -f tapas-tasks/pom.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=SCS-ASSE-FS21-Group1_tapas
diff --git a/assignment/pom.xml b/assignment/pom.xml
index e58d10a..43af6c3 100644
--- a/assignment/pom.xml
+++ b/assignment/pom.xml
@@ -15,6 +15,8 @@
Demo project for Spring Boot
11
+ scs-asse-fs21-group1
+ https://sonarcloud.io
diff --git a/assignment/src/main/java/ch/unisg/assignment/AssignmentApplication.java b/assignment/src/main/java/ch/unisg/assignment/AssignmentApplication.java
index 30d7782..749e593 100644
--- a/assignment/src/main/java/ch/unisg/assignment/AssignmentApplication.java
+++ b/assignment/src/main/java/ch/unisg/assignment/AssignmentApplication.java
@@ -7,6 +7,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
public class AssignmentApplication {
public static void main(String[] args) {
+ System.out.println("TEST SONAR");
SpringApplication.run(AssignmentApplication.class, args);
}
diff --git a/executor-pool/pom.xml b/executor-pool/pom.xml
index d96a76d..dea007e 100644
--- a/executor-pool/pom.xml
+++ b/executor-pool/pom.xml
@@ -15,6 +15,8 @@
Executor Pool
11
+ scs-asse-fs21-group1
+ https://sonarcloud.io
diff --git a/executor1/pom.xml b/executor1/pom.xml
index cdadeff..1534025 100644
--- a/executor1/pom.xml
+++ b/executor1/pom.xml
@@ -15,6 +15,8 @@
Demo project for Spring Boot
11
+ scs-asse-fs21-group1
+ https://sonarcloud.io
diff --git a/executor2/pom.xml b/executor2/pom.xml
index d3e7318..681cebd 100644
--- a/executor2/pom.xml
+++ b/executor2/pom.xml
@@ -15,6 +15,8 @@
Demo project for Spring Boot
11
+ scs-asse-fs21-group1
+ https://sonarcloud.io
diff --git a/tapas-tasks/pom.xml b/tapas-tasks/pom.xml
index 503984f..f3989f4 100644
--- a/tapas-tasks/pom.xml
+++ b/tapas-tasks/pom.xml
@@ -15,6 +15,8 @@
TAPAS Tasks
11
+ scs-asse-fs21-group1
+ https://sonarcloud.io