Bump commons-io:commons-io from 2.15.0 to 2.15.1 #281
Workflow file for this run
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check for tabs | |
run: | | |
find "(" -name "*.java" -or -name "*.xml" -or -name "*.yaml" -or -name "*.yml" -or -name "*.txt" -or -name "*.md" ")" -exec grep -Pl "\t" {} \; > matches.txt | |
grep "" matches.txt && exit 1 || echo "No tab found!" | |
- name: Check for CRLF | |
run: | | |
find "(" -name "*.java" -or -name "*.xml" -or -name "*.yaml" -or -name "*.yml" -or -name "*.txt" -or -name "*.md" ")" -exec grep -Plz "\r\n" {} \; > matches.txt | |
grep "" matches.txt && exit 1 || echo "No CRLF found!" | |
- name: Check for trailing spaces | |
run: | | |
find "(" -name "*.java" -or -name "*.xml" -or -name "*.yaml" -or -name "*.yml" -or -name "*.txt" -or -name "*.md" ")" -exec grep -Pl " $" {} \; > matches.txt | |
grep "" matches.txt && exit 1 || echo "No trailing space found!" | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B verify -Prelease --file pom.xml | |
- name: Submit Dependency Snapshot | |
if: github.ref == 'refs/heads/master' | |
uses: advanced-security/maven-dependency-submission-action@v3 | |
- name: Upload target folder as artifact | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: target | |
path: target |