diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9200fb47b..87b791933 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,6 +26,17 @@ jobs: npm run build npm run bundle - name: Test + if: matrix.os != 'ubuntu-latest' + run: | + npm run test + - name: Test & Coverage + if: matrix.os == 'ubuntu-latest' run: | npm run test-cov npm run check-format + npm run merge-report && cat coverage/lcov.info + - name: Upload Coveralls Report + if: success() && matrix.os == 'ubuntu-latest' + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2eb421491..000000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -addons: - chrome: stable - -language: node_js - -node_js: - - '12' - -install: - - npm ci - - npm run init - -script: - - npm run build - - npm run bundle - - npm run test-cov - - npm run check-format - -after_success: - - 'npm run merge-report && cat coverage/lcov.info | ./node_modules/.bin/coveralls' diff --git a/README.md b/README.md index e436d7c07..e7f5a3826 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,10 @@ For more info about how we handle dependencies and releases in the JSON Forms pr ### Continuous Integration -The JSON Forms project is built and tested via [Travis](https://travis-ci.org/). Coverage is documented by [Coveralls](https://coveralls.io). +The JSON Forms project is built and tested via Github actions on Linux, Mac and Windows. Coverage is documented by [Coveralls](https://coveralls.io). -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) +Current status: ![Build status](https://github.com/eclipsesource/jsonforms/actions/workflows/ci.yaml/badge.svg?branch=master) +[![Coverage Status](https://coveralls.io/repos/eclipsesource/jsonforms/badge.svg?branch=master&service=github)](https://coveralls.io/github/eclipsesource/jsonforms?branch=master) ## License diff --git a/packages/core/package.json b/packages/core/package.json index 6fc0197b7..b1db9cfb9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -38,7 +38,7 @@ "lint": "tslint --project tsconfig.json --exclude src/models/jsonSchema.ts", "report": "nyc report --reporter=html", "test": "ava", - "test-cov": "nyc ava", + "test-cov": "rimraf -rf .nyc_output && nyc ava", "doc": "typedoc --name 'JSON Forms Core' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" }, "ava": {