62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: Verify
|
|
|
|
'on':
|
|
pull_request:
|
|
push:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: verify-${{ gitea.workflow }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
env:
|
|
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up Java 25
|
|
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: '25'
|
|
cache: maven
|
|
|
|
- name: Set up Node 24
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: '24'
|
|
cache: npm
|
|
|
|
- name: Verify Docker for PostgreSQL tests
|
|
run: docker info
|
|
|
|
- name: Install frontend dependencies
|
|
run: npm ci
|
|
|
|
- name: Run frontend tests
|
|
run: npm run test:ui
|
|
|
|
- name: Build frontend assets
|
|
run: npm run build
|
|
|
|
- name: Verify generated assets are committed
|
|
run: git diff --exit-code -- src/main/resources/static/assets/app.css src/main/resources/static/assets/icons.svg
|
|
|
|
- name: Run Maven tests
|
|
run: ./mvnw -B test
|
|
|
|
- name: Verify Javadoc
|
|
run: ./mvnw -B -DskipTests -Ddoclint=all javadoc:javadoc
|
|
|
|
- name: Verify whitespace
|
|
run: git diff --check
|