Skip to content

Commit

Permalink
👷 fix(ci): use mvn verify (#111)
Browse files Browse the repository at this point in the history
* 👷 fix(ci): use `mvn verify`

* fix(ci): GitHub Context format

* fix(ci): GitHub Context format
  • Loading branch information
ricksu978 authored Jul 8, 2023
1 parent e3d44f1 commit 2fa1775
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ permissions:
contents: read # This is required for actions/checkout

jobs:

maven-package:
name: Maven Package
build:
name: Build on GitHub
runs-on: ubuntu-latest

steps:
# Checkout the repo
- name: git checkout
uses: actions/checkout@v3

# Setup JDK / Maven
# Setup JDK 17
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

# Package and Test with Maven
- name: Package and Test with Maven
run: mvn -B package -DJAR_FILENAME=${{ env.JAR_FILENAME }}
# Maven Verify
- name: Maven Verify
run: mvn -B verify -DJAR_FILENAME=${{ env.JAR_FILENAME }}

# Dump GitHub Context
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
echo '${{ toJSON(github) }}' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
# Publish Artifact
- name: Upload Artifact
Expand All @@ -52,7 +52,7 @@ jobs:
docker-push:
name: Docker Push
runs-on: ubuntu-latest
needs: maven-package
needs: build
environment: production
if: github.event_name == 'push' && github.ref_name == 'main'

Expand Down

0 comments on commit 2fa1775

Please sign in to comment.