From 8164bed27df6e32ef8cd4955f02a649ea2187929 Mon Sep 17 00:00:00 2001 From: zchriste Date: Mon, 16 Jan 2023 13:52:53 +0100 Subject: [PATCH 1/3] Created project structure for issue#2 --- .github/workflows/build-pr.yml | 16 ++++++++++++++++ .github/workflows/build.yml | 19 +++++++++++++++++++ README.adoc | 6 ++++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-pr.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000..ed4233c --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,16 @@ +name: CI Build PR +on: pull_request +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: '11' + - name: Build project with Maven + run: mvn install \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7a7b671 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: CI build +on: + push: + paths-ignore: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: '11' + - name: Build project with Maven + run: mvn install \ No newline at end of file diff --git a/README.adoc b/README.adoc index db1393b..a3974c6 100644 --- a/README.adoc +++ b/README.adoc @@ -1,3 +1,5 @@ -# archunit += archunit -Template of https://github.com/devonfw/java/blob/main/modules/ROOT/pages/architecture/layered_architecture.adoc[devonfw Java architecture] validation with https://www.archunit.org/[ArchUnit] and demonstration via sample application. +image:https://github.com/devonfw-sample/archunit/.github/workflows/build.yml/badge.svg["Build Status",link="https://github.com/devonfw-sample/archunit/.github/workflows/build.yml"] + +Template of https://github.com/devonfw/java/blob/main/modules/ROOT/pages/architecture/layered_architecture.adoc[devonfw Java architecture] validation with https://www.archunit.org/[ArchUnit] and demonstration via sample application. \ No newline at end of file From 01c2ef791f2a7db5b5371ce811c9567d1a9be35f Mon Sep 17 00:00:00 2001 From: zchriste Date: Mon, 16 Jan 2023 14:00:01 +0100 Subject: [PATCH 2/3] build test --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a7b671..2d2d5d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,4 +16,4 @@ jobs: with: java-version: '11' - name: Build project with Maven - run: mvn install \ No newline at end of file + run: mvn -DskipTests=true install \ No newline at end of file From d82139d499c338bf6380b2189e1a28a295afd4d0 Mon Sep 17 00:00:00 2001 From: zchriste Date: Mon, 16 Jan 2023 14:02:40 +0100 Subject: [PATCH 3/3] build test reroll --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d2d5d8..7a7b671 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,4 +16,4 @@ jobs: with: java-version: '11' - name: Build project with Maven - run: mvn -DskipTests=true install \ No newline at end of file + run: mvn install \ No newline at end of file