Experimenting how to include an Angular app in the spring boot app #54
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
name: Quick Build | |
on: [pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: 'maven' | |
- name: Relaxed Build to check if this compiles | |
run: | | |
mvn -B -fae clean install -Drelax | |
- name: Check for any unformatted files | |
run: | | |
if [ -n "$(git status --porcelain)" ] | |
then | |
echo "Build modified or reformatted files" | |
git status -s | |
exit 1 | |
else | |
echo "Clean build with no files modifed or reformatted" | |
fi | |
- name: Remove SNAPSHOT jars for lighter cache | |
run: | | |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} |