Set s3mock dependency scope to test to prevent runtime initialization… #352
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: source-update | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: ['main', 'integration'] | |
paths: | |
- 'src/**' | |
- 'pom.xml' | |
- '.github/workflows/source.yml' | |
jobs: | |
buildtest: | |
runs-on: ubuntu-20.04 | |
# strategy: | |
# matrix: | |
# java: [ '8' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '21' | |
distribution: 'adopt' | |
- name: Test with Maven | |
run: mvn --batch-mode test | |