Merge pull request #24 from archip-io/TEMPLATE-15-prepare-for-deployment #30
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: Test Maven Application | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '*' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
cache: maven | |
- name: Test | |
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B test --file pom.xml | |
env: | |
USER_NAME: ${{ secrets.USERNAME }} | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} |