From 5032ed536a538a3438fee9895e71bb074a25398f Mon Sep 17 00:00:00 2001 From: gianlucaguarini Date: Sun, 11 Jul 2021 16:43:53 +0200 Subject: [PATCH] updated: ci --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ .gitignore | 3 ++- .travis.yml | 14 -------------- Readme.md | 7 ++++--- 4 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..de3c2a2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: test + +on: + push: + branches: [ main, dev ] + pull_request: + branches: [ dev ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + steps: + - uses: actions/checkout@v2 + - name: Local Unit Test ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm test diff --git a/.gitignore b/.gitignore index 503ab66..daf6d61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules /test/package-lock.json -/test/dist \ No newline at end of file +/test/dist +.idea diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0ca8ada..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js - -node_js: - - 10 - -branches: - only: - - master - - dev - -notifications: - email: false - -sudo: false diff --git a/Readme.md b/Readme.md index 4aa3cc4..f87cfa8 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -[![Build Status][travis-image]][travis-url] +[![Build Status][ci-image]][ci-url] [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] @@ -69,8 +69,9 @@ If you want to enable hmr via `hot` option you will need to install also [`@riot npm i @riotjs/hot-reload -D ``` -[travis-image]: https://img.shields.io/travis/riot/parcel-plugin-riot.svg?style=flat-square -[travis-url]: https://travis-ci.org/riot/parcel-plugin-riot + +[ci-image]:https://img.shields.io/github/workflow/status/riot/parcel-plugin-riot/test?style=flat-square +[ci-url]:https://github.com/riot/parcel-plugin-riot/actions [license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square [license-url]: LICENSE