Skip to content

Commit

Permalink
chore: import Action script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jun 29, 2020
1 parent bd242cf commit 8a31051
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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@master
with:
fetch-depth: 1

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}

- name: (env) pnpm
run: curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node

- name: (lerna) restore
uses: actions/cache@master
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install
run: |
pnpm install
pnpm add -g nyc
- name: Build
run: pnpm run build

- name: Test w/ Coverage
run: nyc --include=packages pnpm test

- name: Report
if: matrix.nodejs >= 12
run: |
nyc report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": {
"name": "Luke Edwards",
"email": "luke.edwards05@gmail.com",
"url": "lukeed.com"
"url": "https://lukeed.com"
},
"engines": {
"node": ">=4"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tinydate [![Build Status](https://badgen.now.sh/travis/lukeed/tinydate)](https://travis-ci.org/lukeed/tinydate)
# tinydate ![CI](https://github.com/lukeed/tinydate/workflows/CI/badge.svg)

> A tiny (349B) reusable date formatter. Extremely fast!
Expand Down

0 comments on commit 8a31051

Please sign in to comment.