added remaining ci files

This commit is contained in:
Marcel 2021-10-06 18:47:53 +02:00
parent cb47ece96c
commit 17e770ea38
5 changed files with 126 additions and 2 deletions

View File

@ -3,11 +3,11 @@ on:
push: push:
branches: [main, dev] branches: [main, dev]
paths: paths:
- "tapas-tasks/**" - "assignment/**"
pull_request: pull_request:
branches: [main, dev] branches: [main, dev]
paths: paths:
- "tapas-tasks/**" - "assignment/**"
workflow_dispatch: workflow_dispatch:
jobs: jobs:

41
.github/workflows/ci.executor-pool.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: CI Executor Pool
on:
push:
branches: [main, dev]
paths:
- "executor-pool/**"
pull_request:
branches: [main, dev]
paths:
- "executor-pool/**"
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 executor-pool/pom.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=scs-asse-fs21-group1_tapas-executor-pool

41
.github/workflows/ci.executor1.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: CI Tasks
on:
push:
branches: [main, dev]
paths:
- "executor1/**"
pull_request:
branches: [main, dev]
paths:
- "executor1/**"
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 executor1/pom.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=scs-asse-fs21-group1_tapas-executor1

41
.github/workflows/ci.executor2.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: CI Tasks
on:
push:
branches: [main, dev]
paths:
- "executor2/**"
pull_request:
branches: [main, dev]
paths:
- "executor2/**"
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 executor2/pom.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=scs-asse-fs21-group1_tapas-executor2

View File

@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.RestController;
public class TestController { public class TestController {
@RequestMapping("/") @RequestMapping("/")
public String index() { public String index() {
System.out.println("TEST");
return "Hello World! Executor Pool"; return "Hello World! Executor Pool";
} }
} }