mirror of https://github.com/sundowndev/http.git
Revert "chore: remove circleCI and use GH actions"
This reverts commit 04b077a6356a54b7b448a13618ce6f17a02ef943.master
parent
5a58d1c42c
commit
9dea96a3a9
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue