Skip to content

Commit

Permalink
chore: replace travis with github action;
Browse files Browse the repository at this point in the history
- Related: #20
  • Loading branch information
lukeed committed Jan 27, 2021
1 parent 17476b9 commit 2245341
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: lukeed
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Node.js v${{ matrix.nodejs }}
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12, 14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}

- name: Install
run: npm install

- name: (coverage) Install
if: matrix.nodejs >= 14
run: npm install -g c8

- name: Test
run: npm test
if: matrix.nodejs < 14

- name: (coverage) Test
run: c8 --include=src npm test
if: matrix.nodejs >= 14

- name: (coverage) Report
if: matrix.nodejs >= 14
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dset [![Build Status](https://travis-ci.org/lukeed/dset.svg?branch=master)](https://travis-ci.org/lukeed/dset)
# dset [![CI](https://github.com/lukeed/dset/workflows/CI/badge.svg)](https://github.com/lukeed/dset/actions?query=workflow%3ACI) [![codecov](https://badgen.net/codecov/c/github/lukeed/dset)](https://codecov.io/gh/lukeed/dset)

> A tiny (160B) utility for safely writing deep Object values~!
Expand Down

0 comments on commit 2245341

Please sign in to comment.