Skip to content

Commit e7d6882

Browse files
authored
Add github workflow (#2)
1 parent 949becc commit e7d6882

File tree

4 files changed

+37
-45
lines changed

4 files changed

+37
-45
lines changed

.c9build.sh

Lines changed: 0 additions & 23 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*.xml target/site/cobertura/coverage.xml
30+
if: always()

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
Sample demonstrates techniques for using Testspace with Java code and the [JUnit](http://junit.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.junit](https://samples.testspace.com/projects/testspace-samples:java.junit)
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.junit](https://samples.testspace.com/projects/testspace-samples:java.junit)
11+
* Refer to our [Help](https://help.testspace.com/) for more information
1212

1313
***
1414
Using Multiple Online CI Services:
1515

16+
![Build](https://github.com/testspace-samples/java.junit/workflows/Build/badge.svg)
1617
[![Build Status](https://travis-ci.org/testspace-samples/java.junit.svg?branch=master)](https://travis-ci.org/testspace-samples/java.junit)
1718
[![CircleCI](https://circleci.com/gh/testspace-samples/java.junit.svg?style=svg)](https://circleci.com/gh/testspace-samples/java.junit)
18-
[![Run Status](https://api.shippable.com/projects/5a1068f8e366a70700f78952/badge?branch=master)](https://app.shippable.com/projects/5a1068f8e366a70700f78952)
1919

2020
***
2121
Publishing **Test Content** using www.testspace.com.
@@ -26,7 +26,7 @@ Publishing **Test Content** using www.testspace.com.
2626

2727
***
2828

29-
Download and configure the Testspace client
29+
Download and configure the Testspace client
3030

3131
<pre>
3232
mkdir -p $HOME/bin
@@ -39,12 +39,12 @@ Build examples:
3939

4040
<pre>
4141
mvn clean compile
42-
mvn pmd:pmd
42+
mvn pmd:pmd
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*.xml target/site/cobertura/coverage.xml
50-
</pre>
50+
</pre>

shippable.yml

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

0 commit comments

Comments
 (0)