Skip to content

Commit

Permalink
Perform checks earlier in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Nov 1, 2024
1 parent 863a893 commit e67b13d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Fail on whitespace errors
run: git show HEAD --check
- name: Run Spotless
run: mvn -s .travis.settings.xml -Dgithub.username=${{ github.actor }} -Dgithub.password=${{ secrets.GITHUB_TOKEN }} spotless:check -B
- name: Cache Pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Fail on whitespace errors
run: git show HEAD --check
- name: Install global requirements
run: pip3.10 install -r requirements.txt
- name: Run Spotless
run: mvn -s .travis.settings.xml -Dgithub.username=${{ github.actor }} -Dgithub.password=${{ secrets.GITHUB_TOKEN }} spotless:check -B
- name: Run Black
run: black --fast --check --extend-exclude \/out .
- name: Install test requirements
Expand Down

0 comments on commit e67b13d

Please sign in to comment.