updated: ci
This commit is contained in:
parent
9a82f62a50
commit
5032ed536a
25
.github/workflows/test.yml
vendored
Normal file
25
.github/workflows/test.yml
vendored
Normal file
@ -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
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
/test/package-lock.json
|
/test/package-lock.json
|
||||||
/test/dist
|
/test/dist
|
||||||
|
.idea
|
||||||
|
|||||||
14
.travis.yml
14
.travis.yml
@ -1,14 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
|
|
||||||
node_js:
|
|
||||||
- 10
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- dev
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
|
|
||||||
sudo: false
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[![Build Status][travis-image]][travis-url]
|
[![Build Status][ci-image]][ci-url]
|
||||||
[![NPM version][npm-version-image]][npm-url]
|
[![NPM version][npm-version-image]][npm-url]
|
||||||
[![NPM downloads][npm-downloads-image]][npm-url]
|
[![NPM downloads][npm-downloads-image]][npm-url]
|
||||||
[![MIT License][license-image]][license-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
|
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-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
|
||||||
[license-url]: LICENSE
|
[license-url]: LICENSE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user