Ts/3398 interventions #238
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 run Spotless with Java configuration to format the Java codebase | |
name: Lint Server | |
# yamllint disable-line rule:truthy | |
on: | |
workflow_call: | |
push: | |
paths: | |
- 'packages/server/**' | |
branches: [ 'main' ] | |
pull_request: | |
paths: | |
- 'packages/server/**' | |
branches: [ 'main' ] | |
jobs: | |
lintServer: | |
name: Lint Server | |
runs-on: ubuntu-22.04 | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Java v17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
cache: gradle | |
- name: Run Spotless | |
run: | | |
./gradlew spotlessApply | |
- name: Commit all changed files | |
uses: stefanzweifel/git-auto-commit-action@7d0ca8f849305c56d36f992cfb1519b1af5b33f8 | |
with: | |
commit_message: "chore: lint server codebase" |