-
Notifications
You must be signed in to change notification settings - Fork 138
36 lines (34 loc) · 1.3 KB
/
test-webmvc4-jetty.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# yamllint --format github .github/workflows/test.yml
---
name: test webmvc4-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/**"
- "webmvc4-jetty/**"
- ".github/workflows/test-webmvc4-jetty.yaml"
- "parent-pom.xml"
jobs:
test:
runs-on: ubuntu-20.04 # newest available distribution, aka focal
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ./m2repository # Shared with the Docker build context via .dockerignore
key: ${{ runner.os }}-webmvc4-jetty-maven-${{ hashFiles('parent-pom.xml', 'webmvc4-jetty/pom.xml') }}
restore-keys: ${{ runner.os }}-webmvc4-jetty-maven-
# We can't cache Docker without using buildx because GH actions restricts /var/lib/docker
# That's ok because DOCKER_PARENT_IMAGE is always ghcr.io and local anyway.
- name: Test webmvc4-jetty
run: |
build-bin/configure_test webmvc4-jetty &&
build-bin/test webmvc4-jetty