From 8424e85af2a199de3f9b97a1ec2de412a8ef99d2 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Feb 2021 10:46:26 +0100 Subject: [PATCH] Use Actions --- .github/workflows/main.yml | 21 +++++++++++++++++++++ .travis.yml | 5 ----- readme.md | 4 ++-- 3 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ffb6759 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e108609..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - lts/dubnium - - node -after_script: bash <(curl -s https://codecov.io/bash) diff --git a/readme.md b/readme.md index 9a14eb8..5f9cf42 100644 --- a/readme.md +++ b/readme.md @@ -148,9 +148,9 @@ abide by its terms. -[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