-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.04 KB
/
maven.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Test Maven caching
on:
push:
branches:
- main
pull_request:
branches:
- "*"
schedule:
- cron: "15 */6 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
maven:
runs-on:
- namespace-profile-e2e-small
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "temurin"
- name: Setup Maven cache
uses: ./ # Uses an action in the root directory
with:
cache: maven
- uses: actions/checkout@v3
with:
repository: namespace-integration-demos/selenium-cache
path: demo
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: latest
- run: chrome --version
- name: Build with Maven
run: mvn -B clean test
working-directory: ./demo
- name: Print cache metadata file
run: |
ls -al /cache/.ns
cat /cache/.ns/cache-metadata.json