Skip to content

Commit 57e927d

Browse files
authored
add github workflow (#3)
1 parent 3b7a9a3 commit 57e927d

File tree

4 files changed

+36
-44
lines changed

4 files changed

+36
-44
lines changed

.c9build.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
on:
3+
push:
4+
schedule:
5+
- cron: '0 1 * * 0'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/setup-java@v1
12+
with:
13+
java-version: 1.8
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 50
17+
- uses: testspace-com/setup-testspace@v1
18+
with:
19+
domain: samples
20+
- name: Build
21+
run: |
22+
mvn clean compile
23+
mvn pmd:pmd
24+
- name: Test
25+
run: |
26+
mvn cobertura:cobertura -Dcobertura.report.format=xml
27+
- name: Push
28+
run: |
29+
testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
30+
if: always()

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
Sample demonstrates techniques for using Testspace with Java code and the [TestNG](http://testng.org/).
88
* Using a Testspace Project that is `connected` with this GitHub Repo
99
* Using 3 Online CI services for demonstration purposes only
10-
* Can review the Results at [testspace-samples:java.testng](https://samples.testspace.com/projects/testspace-samples:java.testng)
11-
* Refer to our [Getting Started](https://help.testspace.com/getting-started) help articles for more information
10+
* Can review the Results at [testspace-samples:java.testng](https://samples.testspace.com/projects/testspace-samples:java.testng)
11+
* Refer to our [Help](https://help.testspace.com/) for more information
1212

1313
***
1414

1515
Using Multiple Online CI Services:
1616

17+
![Build](https://github.com/testspace-samples/java.testng/workflows/Build/badge.svg)
1718
[![Build Status](https://travis-ci.org/testspace-samples/java.testng.svg?branch=master)](https://travis-ci.org/testspace-samples/java.testng)
1819
[![CircleCI](https://circleci.com/gh/testspace-samples/java.testng.svg?style=svg)](https://circleci.com/gh/testspace-samples/java.testng)
19-
[![Run Status](https://api.shippable.com/projects/5a1068f81b035b070030306f/badge?branch=master)](https://app.shippable.com/projects/5a1068f81b035b070030306f)
2020

2121
***
2222
Publishing **Test Content** using www.testspace.com.
@@ -27,7 +27,7 @@ Publishing **Test Content** using www.testspace.com.
2727

2828
***
2929

30-
Download and configure the Testspace client
30+
Download and configure the Testspace client
3131

3232
<pre>
3333
mkdir -p $HOME/bin
@@ -43,8 +43,8 @@ Build examples:
4343
mvn cobertura:cobertura -Dcobertura.report.format=xml
4444
</pre>
4545

46-
Push Content using Testspace client
46+
Push Content using Testspace client
4747

4848
<pre>
4949
testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
50-
</pre>
50+
</pre>

shippable.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)