Skip to content

Moves github actions to latest Ubuntu LTS 24.04 #90

Moves github actions to latest Ubuntu LTS 24.04

Moves github actions to latest Ubuntu LTS 24.04 #90

# yamllint --format github .github/workflows/test.yml
---
name: test webmvc3-jetty
on:
# We deploy non-tagged pushes to master relevant for this project. We can't opt out of
# documentation-only commits because GH actions does not permit paths and paths-ignore.
pull_request:
branches: master
paths:
- "build-bin/**"
- "docker/**"
- "webmvc3-jetty/**"
- ".github/workflows/test-webmvc3-jetty.yaml"
- "parent-pom.xml"
jobs:
test:
runs-on: ubuntu-24.04 # newest available distribution, aka noble
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ./m2repository # Shared with the Docker build context via .dockerignore
key: ${{ runner.os }}-webmvc3-jetty-maven-${{ hashFiles('parent-pom.xml', 'webmvc3-jetty/pom.xml') }}
restore-keys: ${{ runner.os }}-webmvc3-jetty-maven-
# Don't attempt to cache Docker. Sensitive information can be stolen
# via forks, and login session ends up in ~/.docker. This is ok because
# we publish DOCKER_PARENT_IMAGE to ghcr.io, hence local to the runner.
- name: Test webmvc3-jetty
run: |
build-bin/configure_test webmvc3-jetty &&
build-bin/test webmvc3-jetty