deps: bump me.paulschwarz:spring-dotenv in /samples/java/token-refresh #14
Workflow file for this run
This file contains hidden or 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 Java Frameworks | |
| on: | |
| push: | |
| paths: | |
| - "samples/java/**" | |
| - ".github/workflows/test-java.yml" | |
| pull_request: | |
| paths: | |
| - "samples/java/**" | |
| - ".github/workflows/test-java.yml" | |
| schedule: | |
| - cron: "0 8 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| find-projects: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.find.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: find | |
| run: | | |
| DIRS=$(find samples -name "pom.xml" -not -path "*/target/*" -not -path "*/node_modules/*" -exec dirname {} \; 2>/dev/null | sort | jq -R -s -c 'split("\n") | map(select(. != ""))') | |
| echo "matrix=$DIRS" >> "$GITHUB_OUTPUT" | |
| test: | |
| needs: find-projects | |
| if: ${{ needs.find-projects.outputs.matrix != '[]' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: ${{ fromJson(needs.find-projects.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: "temurin" | |
| java-version: "21" | |
| cache: "maven" | |
| - name: Build and test | |
| working-directory: ${{ matrix.project }} | |
| run: mvn -B verify |