Skip to content

Commit

Permalink
test CI/CD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pcalouche committed Aug 6, 2024
1 parent 03ad87e commit 037874b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- temp

permissions:
contents: read
Expand All @@ -28,7 +29,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Run Maven
run: mvn -B -s ./.mvn/settings.xml clean deploy
run: make mvn-deploy-ci-cd
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Run Maven
run: mvn -B -s ./.mvn/settings.xml clean verify
run: make mvn-verify-ci-cd
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ mvn-verify: format
mvn-verify-skip-tests: format
mvn clean verify -DskipTests

.PHONY: mvn-verify-ci-cd
mvn-verify-ci-cd:
mvn mvn -B -s ./.mvn/settings.xml verify

# Run tests and install locally
.PHONY: mvn-install
mvn-install: format
Expand All @@ -23,6 +27,10 @@ mvn-install: format
mvn-install-skip-tests: format
mvn clean install -DskipTests

.PHONY: mvn-deploy-ci-cd
mvn-deploy-ci-cd:
mvn mvn -B -s ./.mvn/settings.xml deploy

# Check if version is a SNAPSHOT
.PHONY: check-if-snapshot-version
check-if-snapshot-version:
Expand Down

0 comments on commit 037874b

Please sign in to comment.