From 45519c4f80240006edda9eade893f88d11d27f4c Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Thu, 22 Oct 2020 07:28:09 -0500 Subject: [PATCH 1/3] fix(ci): switch to GitHub actions It appears our Travis builds stay queued for a while, lets try GitHub actions? --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 23 insertions(+), 13 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 0000000000..79de4abe70 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['12', '14'] + steps: + - uses: actions/checkout@v2 + - name: Setup Node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: make bootstrap + - run: make packages-build + - run: make fmt-check + - run: make packages-lint + - run: make packages-tslint + - run: make packages-test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 936bb4cb3b..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js -node_js: - - '12' -script: - - make init - - make fmt-check - - make packages-lint - - make packages-tslint - - make packages-test - # Skipping build steps as they're way to slow… - # - make website-build - # - make storybook-build - # - make examples-build From b4ae1ffa24dbff176ab86cd9f80d2a826791d72e Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Thu, 22 Oct 2020 07:45:27 -0500 Subject: [PATCH 2/3] fix(ci): try caching --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79de4abe70..7a77a94707 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,23 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Restore Yarn cache + uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Restore Lerna cache + uses: actions/cache@v2 + with: + path: | + node_modules + */*/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - run: yarn install --frozen-lockfile - run: make bootstrap - run: make packages-build From ca8e90a73db23c06335f04bcc6616ff473bae9ec Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Thu, 22 Oct 2020 08:33:46 -0500 Subject: [PATCH 3/3] fix(ci): update readme with correct badge --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1bffe4c4e..02d6a56fe9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Backers on Open Collective](https://opencollective.com/nivo/backers/badge.svg?style=flat-square)](#backers) [![Sponsors on Open Collective](https://opencollective.com/nivo/sponsors/badge.svg?style=flat-square)](#sponsors) [![License][license-image]][license-url] -[![Travis CI][travis-image]][travis-url] +[![GitHub Actions][actions-image]][actions-url] [![NPM version][npm-image]][npm-url] [![nivo channel on discord](https://img.shields.io/badge/discord-nivo-61dafb.svg?style=flat-square)](https://discord.gg/n7Ft74f) @@ -95,7 +95,7 @@ your logo will show up here with a link to your website. [[Become a sponsor](htt [license-url]: https://github.com/plouc/nivo/blob/master/LICENSE.md [npm-image]: https://img.shields.io/npm/v/@nivo/core.svg?style=flat-square [npm-url]: https://www.npmjs.com/~nivo -[travis-image]: https://img.shields.io/travis/plouc/nivo.svg?style=flat-square -[travis-url]: https://travis-ci.org/plouc/nivo +[actions-image]: https://img.shields.io/github/workflow/status/plouc/nivo/CI.svg?style=flat-square +[actions-url]: https://github.com/plouc/nivo/actions [prettier-image]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square [prettier-url]: https://github.com/prettier/prettier