-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (46 loc) · 1.56 KB
/
main.yml
File metadata and controls
52 lines (46 loc) · 1.56 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
45
46
47
48
49
50
51
52
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: robotframework-tests
on:
push:
branches: '**'
pull_request:
branches: [ master ]
workflow_dispatch:
defaults:
run:
working-directory: tests/robot
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/setup-python@v2
with:
python-version: '2.x'
architecture: 'x64'
- uses: actions/setup-python@v2
with:
python-version: '3.7' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install grpcio grpcio-tools pudb
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build with Maven
run: mvn clean install --file pom.xml
- name: Delete output.xml (on Unix-like)
run: |
find $GITHUB_WORKSPACE/tests/robot/target/robotframework-reports -type f -name 'output.xml' -exec rm {} +
if: always()
- name: Archive acceptances test results
uses: actions/upload-artifact@v2
with:
name: robot-results
path: tests/robot/target/robotframework-reports
if: always()