Refactored add message to session for clean architecture #34
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: Java Maven Build and Verify | |
on: | |
pull_request: | |
branches: ["*"] | |
push: | |
branches: ["main"] | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
azure: ${{ secrets.AZURE }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up AdoptOpenJDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' # Use '17' or other appropriate versions | |
distribution: 'adopt' # Specify the distribution (AdoptOpenJDK) | |
- name: Build with Maven (compile) | |
run: mvn compile | |
- name: Package with Maven | |
run: mvn package | |
- name: Verify with Maven | |
run: mvn verify | |
- name: Test with Maven | |
run: mvn test |