diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7a28b3b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + + lint-markdown: + name: Lint Markdown + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Run Remark Markdown Linter + run: | + npm install + npm run lint:md + - name: Run Textlint Markdown Linter + run: npm run lint:text + + unit-test: + name: Unit Tests + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Use Java 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: 'Unit Tests with Java 8' + run: | + mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Padd-dependencies-for-IDEA > install.log + mvn verify -Padd-dependencies-for-IDEA + mvn clean test -Dtest=*Test cobertura:cobertura coveralls:report -Padd-dependencies-for-IDEA -DrepoToken="${COVERALLS_TOKEN}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cdd299b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -branches: - only: - - master - -jobs: - include: - - stage: test - name: "Unit Tests: Java 8" - language: java - dist: trusty - jdk: - - oraclejdk8 - install: - - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Padd-dependencies-for-IDEA > install.log - before_script: - - mvn verify -Padd-dependencies-for-IDEA - script: - - mvn clean test -Dtest=*Test cobertura:cobertura coveralls:report -Padd-dependencies-for-IDEA -DCOVERALLS_TOKEN=$COVERALLS_TOKEN - after_success: - - mvn clean cobertura:cobertura coveralls:report - - - stage: test - name: "Documentation Tests" - language: node_js - - node_js: - - "10" - - install: - - npm install - - script: - - npm run lint:md - - npm run lint:text diff --git a/README.md b/README.md index e7a324b..37fb9a0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![](https://img.shields.io/badge/tag-fiware--cosmos-orange.svg?logo=stackoverflow)](http://stackoverflow.com/questions/tagged/fiware-cosmos)
[![Documentation badge](https://readthedocs.org/projects/fiware-cosmos-flink/badge/?version=latest)](https://fiware-cosmos-flink.readthedocs.io/en/latest/) -[![Build Status](https://travis-ci.com/ging/fiware-cosmos-orion-flink-connector.svg?branch=master)](https://travis-ci.com/ging/fiware-cosmos-orion-flink-connector) +[![CI](https://github.com/ging/fiware-cosmos-orion-flink-connector/workflows/CI/badge.svg)](https://github.com/ging/fiware-cosmos-orion-flink-connector/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/github/ging/fiware-cosmos-orion-flink-connector/badge.svg?branch=master)](https://coveralls.io/github/ging/fiware-cosmos-orion-flink-connector?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ff824123db8542a3ad34ee3e1be58bd4)](https://www.codacy.com/manual/sonsoleslp/fiware-cosmos-orion-flink-connector?utm_source=github.com&utm_medium=referral&utm_content=ging/fiware-cosmos-orion-flink-connector&utm_campaign=Badge_Grade) [![Known Vulnerabilities](https://snyk.io/test/github/ging/fiware-cosmos-orion-flink-connector/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/ging/fiware-cosmos-orion-flink-connector?targetFile=pom.xml)