Use Actions
This commit is contained in:
parent
24dcf3a631
commit
8424e85af2
3 changed files with 23 additions and 7 deletions
21
.github/workflows/main.yml
vendored
Normal file
21
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: main
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
jobs:
|
||||
main:
|
||||
name: ${{matrix.node}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dcodeIO/setup-node-nvm@master
|
||||
with:
|
||||
node-version: ${{matrix.node}}
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- uses: codecov/codecov-action@v1
|
||||
strategy:
|
||||
matrix:
|
||||
node:
|
||||
- lts/dubnium
|
||||
- node
|
|
@ -1,5 +0,0 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- lts/dubnium
|
||||
- node
|
||||
after_script: bash <(curl -s https://codecov.io/bash)
|
|
@ -148,9 +148,9 @@ abide by its terms.
|
|||
|
||||
<!-- Definitions -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/remarkjs/remark-directive/main.svg
|
||||
[build-badge]: https://github.com/remarkjs/remark-directive/workflows/main/badge.svg
|
||||
|
||||
[build]: https://travis-ci.org/remarkjs/remark-directive
|
||||
[build]: https://github.com/remarkjs/remark-directive/actions
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-directive.svg
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue