From 16656fb44713f08367675f7e52517db8cbf351cd Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Feb 2021 10:57:12 +0100 Subject: [PATCH] Use Actions --- .github/workflows/main.yml | 21 +++++++++++++++++++++ .travis.yml | 15 --------------- readme.md | 4 ++-- 3 files changed, 23 insertions(+), 17 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 203616c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - lts/dubnium - - node -after_script: bash <(curl -s https://codecov.io/bash) -deploy: - provider: releases - skip_cleanup: true - api_key: - secure: DfokG9Jp9wXdyCzvF0RWmcISno26SthQgsbjKTd+Yrt4W4R5vw9wqewTQhQ34ma7fJsLQUuGs8B8iUtntqIY7oZPkuAh/vhQHG1X0U3UuqaVUFHaElc8MociTgx8TS6HznlNBW+hc9DD/RPlSC0IfeIYKARyDHBceRRgbOcErDTaZnu4uRJsXcHSxAIlmig+4aTqeBCzmWm/StOfzyb0zX2LH+kb3FOHzkEIshLTELUp+oj4A/1zYEafbJgVMllmqKuYE7AjBREB0z9HAHe/boW9ZK1oS5CVtCdqu78y39SOaef+AP7f1IlFsfGwSb5/2Tra6uOyHvr93G+35ca85Dm3gW4pQP2d8JICWwmsLVVa9c0BZyCLhUNco8Mr5K+amkqYfEQcyc4UENadThS83UlSKXYlvzhcz7nSjXiRXAI0v8zBmFRpMBeWNTcwSXCQyvpJXcn7WvbtwXUHziHR1BXPuTDOosT5leq7iKAIWx0jNltHCjtyO+R3Xj0whgUc9Ywig2esnlBVSNa+bEZVaTHVUxZd4rGFvEZpwSwsvKNpOjF7pmFEtOmBr6s7z8Hq7IAL23qfRUdmxwY8lLRMxhaj6jkC3PBxvsruEhejsVCNJmQmeB7bX+Eb4FWGabl2/MGuLnoTeO1q6t9WooyuHh4QKiyTfh8zYXSsj6bDsX8= - file: - - 'remark-slug.js' - - 'remark-slug.min.js' - on: - tags: true diff --git a/readme.md b/readme.md index 8d37100..c1b59e6 100644 --- a/readme.md +++ b/readme.md @@ -119,9 +119,9 @@ abide by its terms. -[build-badge]: https://img.shields.io/travis/remarkjs/remark-slug/main.svg +[build-badge]: https://github.com/remarkjs/remark-slug/workflows/main/badge.svg -[build]: https://travis-ci.org/remarkjs/remark-slug +[build]: https://github.com/remarkjs/remark-slug/actions [coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-slug.svg