-
Notifications
You must be signed in to change notification settings - Fork 67
42 lines (39 loc) · 1.31 KB
/
CI.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
37
38
39
40
41
42
name: SwingLibrary CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
include:
- os: ubuntu-latest
set_display: export DISPLAY=:99; Xvfb :99 -screen 0 1920x1080x24 -ac -noreset & sleep 3
steps:
- uses: actions/checkout@v2
- name: Set up Java 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v20
with:
mirrors: '[{ "id": "maven-default-http-blocker", "mirrorOf": "dummy", "url": "http://0.0.0.0/" }]'
- name: Run tests on Linux
if: runner.os == 'Linux'
run: |
${{ matrix.set_display }}
mvn clean verify
- name: Run tests on Windows
if: runner.os == 'Windows'
run: Set-DisplayResolution -Width 1920 -Height 1080 -Force; mvn clean verify
shell: powershell
- name: Run tests MacOS
if: runner.os == 'macOS'
run: mvn clean verify
- uses: actions/upload-artifact@v1
if: success() || failure()
with:
name: Test Results - ${{ runner.os }}
path: "target with spaces/robotframework-reports/"