From 9a5e7ecbef5fff78d02b4af4faf503eac354bf98 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 31 Jan 2021 23:30:20 +0100 Subject: [PATCH] remove Travis, add CI GitHub Action --- .github/dependabot.yml | 11 +++++------ .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 5 ----- README.md | 3 +-- 4 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e6792cc..7423bc2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,7 @@ version: 2 updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - time: '04:00' - open-pull-requests-limit: 10 + - package-ecosystem: npm + directory: '/' + schedule: + interval: weekly + time: '04:00' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8477ccf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: 'CI' + +on: + push: + branches: + - main + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + node: ['14'] + + steps: + - uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + + - run: npm ci + - run: npm test + - run: npm run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bec400d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: node - -notifications: - email: false diff --git a/README.md b/README.md index 5fdc3a6..5cdcb07 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,8 @@ # gatsby-redirect-from [![npm package](https://img.shields.io/npm/v/gatsby-redirect-from.svg)](https://www.npmjs.com/package/gatsby-redirect-from) -[![Build Status](https://travis-ci.com/kremalicious/gatsby-redirect-from.svg?branch=main)](https://travis-ci.com/kremalicious/gatsby-redirect-from) +[![Build Status](https://github.com/kremalicious/gatsby-redirect-from/workflows/CI/badge.svg)](https://github.com/kremalicious/gatsby-redirect-from/actions) [![Maintainability](https://api.codeclimate.com/v1/badges/9643b2a038a7d338a73a/maintainability)](https://codeclimate.com/github/kremalicious/gatsby-redirect-from/maintainability) -[![Dependabot enabled](https://badgen.net/dependabot/thepracticaldev/dev.to?icon=dependabot)](https://dependabot.com/) > 🎯 Set redirect urls in your YAML frontmatter within your [Gatsby](https://www.gatsbyjs.org) site's Markdown files. Mimics the behavior of [jekyll-redirect-from](https://github.com/jekyll/jekyll-redirect-from). > https://kremalicious.com/gatsby-redirect-from/