Skip to content

Commit d975bc7

Browse files
TheZokersdirix
andauthored
Fully switch to Github Actions
* Remove Travis integration * Run test coverage only on Linux and normal test on Windows and macOS * Upload test coverage to Coveralls * Update README.md * Update core test-cov script to potentially improve stability Co-authored-by: Stefan Dirix <[email protected]>
1 parent 139a598 commit d975bc7

File tree

4 files changed

+15
-23
lines changed

4 files changed

+15
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ jobs:
2626
npm run build
2727
npm run bundle
2828
- name: Test
29+
if: matrix.os != 'ubuntu-latest'
30+
run: |
31+
npm run test
32+
- name: Test & Coverage
33+
if: matrix.os == 'ubuntu-latest'
2934
run: |
3035
npm run test-cov
3136
npm run check-format
37+
npm run merge-report && cat coverage/lcov.info
38+
- name: Upload Coveralls Report
39+
if: success() && matrix.os == 'ubuntu-latest'
40+
uses: coverallsapp/github-action@master
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

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

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ For more info about how we handle dependencies and releases in the JSON Forms pr
4747

4848
### Continuous Integration
4949

50-
The JSON Forms project is built and tested via [Travis](https://travis-ci.org/). Coverage is documented by [Coveralls](https://coveralls.io).
50+
The JSON Forms project is built and tested via Github actions on Linux, Mac and Windows. Coverage is documented by [Coveralls](https://coveralls.io).
5151

52-
Current status: [![Build Status](https://travis-ci.org/eclipsesource/jsonforms.svg?branch=master)](https://travis-ci.org/eclipsesource/jsonforms) [![Coverage Status](https://coveralls.io/repos/eclipsesource/jsonforms/badge.svg?branch=master&service=github)](https://coveralls.io/github/eclipsesource/jsonforms?branch=master)
52+
Current status: ![Build status](https://github.com/eclipsesource/jsonforms/actions/workflows/ci.yaml/badge.svg?branch=master)
53+
[![Coverage Status](https://coveralls.io/repos/eclipsesource/jsonforms/badge.svg?branch=master&service=github)](https://coveralls.io/github/eclipsesource/jsonforms?branch=master)
5354

5455
## License
5556

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"lint": "tslint --project tsconfig.json --exclude src/models/jsonSchema.ts",
3939
"report": "nyc report --reporter=html",
4040
"test": "ava",
41-
"test-cov": "nyc ava",
41+
"test-cov": "rimraf -rf .nyc_output && nyc ava",
4242
"doc": "typedoc --name 'JSON Forms Core' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src"
4343
},
4444
"ava": {

0 commit comments

Comments
 (0)