Skip to content

Commit

Permalink
chore: setup Node.js CI with Actions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
acostalima authored Jun 8, 2020
1 parent a4c3905 commit c166020
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Node CI

on: push

jobs:
prepare:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12", "14"]
name: "[v${{ matrix.node-version }}] check"

steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Test
env:
CI: 1
run: |
npm t
- name: Submit coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# jest-config

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][build-status-image]][build-status-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]

[npm-url]:https://npmjs.org/package/@moxy/jest-config
[downloads-image]:https://img.shields.io/npm/dm/@moxy/jest-config.svg
[npm-image]:https://img.shields.io/npm/v/@moxy/jest-config.svg
[travis-url]:https://travis-ci.org/moxystudio/jest-config
[travis-image]:https://img.shields.io/travis/moxystudio/jest-config/master.svg
[build-status-url]:https://github.com/moxystudio/jest-config/actions
[build-status-image]:https://img.shields.io/github/workflow/status/moxystudio/jest-config/Node%20CI/master
[codecov-url]:https://codecov.io/gh/moxystudio/jest-config
[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/jest-config/master.svg
[david-dm-url]:https://david-dm.org/moxystudio/jest-config
Expand Down

0 comments on commit c166020

Please sign in to comment.