From 93f184972ad29f486435cb38f359c7e1a99298a9 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 12 Nov 2020 14:29:34 +0100 Subject: [PATCH] Add GitHub CI setup (#139) Co-authored-by: Sindre Sorhus --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .travis.yml | 4 ---- readme.md | 2 +- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..c1870cf78 --- /dev/null +++ b/.github/workflows/ci.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 94ab01f00..000000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - '12' - - '10' diff --git a/readme.md b/readme.md index 556857399..14e696a3f 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@

-[![Build Status](https://travis-ci.com/sindresorhus/type-fest.svg?branch=master)](https://travis-ci.com/sindresorhus/type-fest) +[![Build Status](https://github.com/sindresorhus/type-fest/workflows/CI/badge.svg?branch=master)](https://github.com/sindresorhus/type-fest/actions?query=branch%3Amaster+workflow%3ACI) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://giphy.com/gifs/illustration-rainbow-unicorn-26AHG5KGFxSkUWw1i)