From 6b410d7bee4e5f63eb1d325a2f193ffabe3f4b3f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 25 Nov 2020 14:25:30 +0700 Subject: [PATCH] Move to GitHub Actions --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ .travis.yml | 6 ------ readme.md | 2 +- 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 00000000..c1870cf7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 14 + - 12 + - 10 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bec5fdd6..00000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - '12' - - '10' -before_script: - - npm install --global npm@6.8.0 diff --git a/readme.md b/readme.md index 0984eb1c..034b4521 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# np [![Build Status](https://travis-ci.com/sindresorhus/np.svg?branch=master)](https://travis-ci.com/github/sindresorhus/np) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) +# np [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) > A better `npm publish`