-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 881 Bytes
/
master.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
name: Selenium Java Architecture Skeleton
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: 21
version: latest
- name: Start Selenium Docker Grid setup
run: docker-compose -f "docker-compose.yml" up -d --build
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean compile
- name: Run the tests
run: mvn test