Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Merge 2d7284f into 6de0f80
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-lam committed Dec 25, 2020
2 parents 6de0f80 + 2d7284f commit d86d1d2
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 359 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,73 @@
name: CI
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
release:
types:
- published
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15
- run: npm ci
- run: npm run test:lint
test:
name: Test - ${{ matrix.os }}/Node ${{ matrix.node_version }}
strategy:
matrix:
node_version:
- 10
- 12
- 14
- 15
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- run: npm ci
- run: npm run test:unit
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15
- run: npm ci
- run: npm run test:coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs:
- lint
- test
- coverage
if: github.event.action == 'published'
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org/
node-version: 15
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@ politely
========

[![npm](https://img.shields.io/npm/v/politely)](https://www.npmjs.com/package/politely)
[![Build Status](https://travis-ci.com/raymond-lam/politely.svg?branch=master)](https://travis-ci.com/raymond-lam/politely)
[![CI](https://github.com/raymond-lam/politely/workflows/CI/badge.svg?branch=master)](https://github.com/raymond-lam/politely/actions)
[![Coverage Status](https://coveralls.io/repos/github/raymond-lam/politely/badge.svg?branch=master)](https://coveralls.io/github/raymond-lam/politely?branch=master)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

Expand Down

0 comments on commit d86d1d2

Please sign in to comment.