forked from hantsy/spring-r2dbc-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor Github actions workflows
- Loading branch information
Showing
20 changed files
with
540 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.