From 9dea96a3a95563c18aceb7d384ff0fa846521c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 13 Apr 2020 15:35:08 +0200 Subject: [PATCH] Revert "chore: remove circleCI and use GH actions" This reverts commit 04b077a6356a54b7b448a13618ce6f17a02ef943. --- .circleci/config.yml | 38 +++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 45 ---------------------------------------- README.md | 6 +++--- 3 files changed, 41 insertions(+), 48 deletions(-) create mode 100755 .circleci/config.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100755 index 0000000..78c4e41 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,38 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node + steps: + # Checkout repository + - checkout + + # Restore cache + - restore_cache: + key: yarn-cache-{{ checksum "yarn.lock" }} + + # Install dependencies + - run: + name: Install Dependencies + command: NODE_ENV=dev yarn + + # Keep cache + - save_cache: + key: yarn-cache-{{ checksum "yarn.lock" }} + paths: + - "node_modules" + + # Lint + - run: + name: Lint + command: yarn lint + + # Tests + - run: + name: Tests + command: yarn jest + + # Coverage + - run: + name: Coverage + command: yarn codecov diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 42f0012..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: ci - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - ci: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - node: [10, 12] - - steps: - - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - - name: checkout - uses: actions/checkout@master - - - name: cache node_modules - uses: actions/cache@v1 - with: - path: node_modules - key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }} - - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: yarn - - - name: Lint - run: yarn lint - - - name: Test - run: yarn test - - - name: Coverage - uses: codecov/codecov-action@v1 diff --git a/README.md b/README.md index 8769638..578d6fc 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] -[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href] +[![Circle CI][circle-ci-src]][circle-ci-href] [![Codecov][codecov-src]][codecov-href] [![Standard JS][standard-js-src]][standard-js-href] @@ -25,8 +25,8 @@ Copyright (c) Nuxt.js Team [npm-version-href]: https://npmjs.com/package/@nuxt/http [npm-downloads-src]: https://flat.badgen.net/npm/dt/@nuxt/http [npm-downloads-href]: https://npmjs.com/package/@nuxt/http -[github-actions-ci-src]: https://github.com/nuxt/lmify/workflows/ci/badge.svg -[github-actions-ci-href]: https://github.com/nuxt/lmify/actions?query=workflow%3Aci +[circle-ci-src]: https://flat.badgen.net/circleci/github/nuxt/http +[circle-ci-href]: https://circleci.com/gh/nuxt/http [codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt/http [codecov-href]: https://codecov.io/gh/nuxt/http [standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square