Skip to content

Commit

Permalink
refactor: refactor Github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Jan 31, 2022
1 parent 2f0b761 commit 5847180
Show file tree
Hide file tree
Showing 20 changed files with 540 additions and 310 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/auditing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: auditing

on:
push:
paths:
- "auditing/**"
branches:
- master
pull_request:
paths:
- "auditing/**"
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Start up PostgreSQL in Docker
run: |
docker-compose up -d postgres
sleep 10
docker ps -a
- name: Build with Maven
run: |
mvn clean install --file auditing/pom.xml
mvn clean verify -Pit --file auditing/pom.xml
41 changes: 41 additions & 0 deletions .github/workflows/boot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: boot

on:
push:
paths:
- "boot/**"
branches:
- master
pull_request:
paths:
- "boot/**"
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Start up PostgreSQL in Docker
run: |
docker-compose up -d postgres
sleep 10
docker ps -a
- name: Build with Maven
run: |
mvn clean install --file boot/pom.xml
mvn clean verify -Pit --file boot/pom.xml
222 changes: 0 additions & 222 deletions .github/workflows/build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/connection-factories.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: connection-factories

on:
push:
paths:
- "connection-factories/**"
branches:
- master
pull_request:
paths:
- "connection-factories/**"
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build connectionfactories
run: mvn clean install --file connection-factories/pom.xml -Dmaven.test.skip=true -DskipTests
39 changes: 39 additions & 0 deletions .github/workflows/data-r2dbc-entitytemplate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: data-r2dbc-entitytemplate

on:
push:
paths:
- "data-r2dbc-entitytemplate/**"
branches:
- master
pull_request:
paths:
- "data-r2dbc-entitytemplate/**"
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Start up PostgreSQL in Docker
run: |
docker-compose up -d postgres
sleep 10
docker ps -a
- name: Build with Maven
run: mvn clean install --file data-r2dbc-entitytemplate/pom.xml
Loading

0 comments on commit 5847180

Please sign in to comment.