Merge pull request #106 from cytechmobile/dependabot/maven/quarkus.pl… #319
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
# GitHub Actions Workflow created for testing the application | |
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
permissions: | |
pull-requests: write | |
jobs: | |
runTests: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out current repository | |
- name: checkout | |
uses: actions/checkout@v4 | |
# Setup Java environment for the next steps | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
# Setup any environment variable in this step | |
- name: Setup environment | |
run: | | |
echo "MVN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true --batch-mode --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" >> $GITHUB_ENV | |
# Run tests and build the application | |
- name: build | |
working-directory: './' | |
run: | | |
./mvnw verify -DskipTests=false -Dmaven.test.skip=false | |
- name: AutoMerge Dependabot PRs | |
if: success() && github.actor == 'dependabot[bot]' && github.ref != 'refs/heads/main' | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
GH_TOKEN: ${{secrets.CLASSIC_GH_TOKEN}} | |
run: | | |
echo "found successful dependabot PR, merging it" | |
gh pr merge --merge --admin |