Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin from 3.3.1 to 3.5.1 #70

chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin from 3.3.1 to 3.5.1

chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin from 3.3.1 to 3.5.1 #70

Workflow file for this run

name: Maven CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 11
- name: Cache the Maven packages to speed up build
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Pick maven version
run: mvn wrapper:wrapper -Dmaven=3.8.6
- name: Build project with Maven
run: ./mvnw -B package
publish-job:
runs-on: ubuntu-latest
needs: [ build_and_test ]
if: github.ref == 'refs/heads/main'
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 11
- name: Pick maven version
run: mvn wrapper:wrapper -Dmaven=3.8.6
- name: Bump Version
id: bump
uses: Plugily-Projects/maven-version-bump-action@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-version-bump: true
git-committer: 'BOT'
- run: ./mvnw -B package -DskipTests
- run: mkdir staging && cp target/*jar-with-dependencies.jar staging
- name: Publish package
run: ./mvnw --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging