mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
41 lines
852 B
YAML
41 lines
852 B
YAML
name: Checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
formatting-check:
|
|
name: Follow Google Formatting Guidelines
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '24'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
- name: Run Format Check
|
|
run: mvn spotless:check
|
|
|
|
tests:
|
|
name: Unittests
|
|
runs-on: ${{ matrix.os }}
|
|
needs: formatting-check
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '24'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
- name: Run Unittests
|
|
run: mvn -B test
|