-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from jaguililla/develop
Develop
- Loading branch information
Showing
6 changed files
with
135 additions
and
38 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,42 @@ | ||
|
||
name: Nightly Build | ||
on: | ||
schedule: | ||
- cron: "59 23 * * *" | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
nightly: | ||
name: Nightly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: SDKMAN Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.sdkman | ||
key: "${{ runner.os }}-sdkman-${{ hashFiles('.sdkmanrc') }}" | ||
restore-keys: "${{ runner.os }}-sdkman-" | ||
- name: Maven Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: "${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}" | ||
restore-keys: "${{ runner.os }}-maven-" | ||
- name: Install SDKMAN | ||
run: curl -s "https://get.sdkman.io?rcupdate=false" | bash | ||
- name: Build Application | ||
run: | | ||
source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
sdk env install | ||
./mvnw -P pitest | ||
- name: Build Client | ||
run: | | ||
export CLIENT_PATH='target/generated-sources/openapi' | ||
export CONTROLLERS_PATH='com/github/jaguililla/appointments/http/controllers' | ||
rm -rf "${CLIENT_PATH}/src/main/java/${CONTROLLERS_PATH}" | ||
mvn -f "${CLIENT_PATH}/pom.xml" clean install |
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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