forked from BugorDmitriy/OpenWeatherJavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.03 KB
/
Copy pathci.yml
File metadata and controls
44 lines (36 loc) · 1.03 KB
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
name: CI
on:
pull_request:
branches: [main]
jobs:
run-test:
name: 'Run tests'
runs-on: ubuntu-latest
steps:
- name: Git clone
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Сache maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Maven test
run: mvn -B package --file pom.xml
env:
CHROME_OPTIONS: --disable-gpu;--no-sandbox;--disable-dev-shm-usage;--headless;--window-size=1920,1080
CI_RUN: true
- name: Create test report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Unit tests Report
path: target/surefire-reports/TEST-*.xml
reporter: java-junit