Skip to content

Commit

Permalink
syntax checker? Hope this works
Browse files Browse the repository at this point in the history
  • Loading branch information
evannawfal committed Feb 6, 2025
1 parent 46fa797 commit 73287fe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/syntax-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Spring Boot Syntax Check (Maven)

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 23
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '23'

- name: Cache Maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: Compile the project (syntax check)
run: mvn clean compile -DskipTests

0 comments on commit 73287fe

Please sign in to comment.