Skip to content

Commit

Permalink
Move to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iliocatallo committed Mar 11, 2022
1 parent c502abe commit 59089fc
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
node: [11.x, 12.x, 13.x, 14.x, 15.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: npm run coverage
- uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ out
.nyc_output

#build tools
.travis.yml
.github
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<br/>

<div align="center">
<a href="https://travis-ci.org/iliocatallo/typista">
<img alt="Build status" src="https://travis-ci.org/iliocatallo/typista.svg?branch=master">
<a href="https://github.com/iliocatallo/typista/actions/workflows/ci.yml">
<img alt="Build status" src="https://github.com/iliocatallo/typista/actions/workflows/ci.yml/badge.svg"/>
</a>
<a href="https://coveralls.io/github/iliocatallo/typista">
<img alt="Coverage" src="https://coveralls.io/repos/github/iliocatallo/typista/badge.svg?branch=master">
Expand Down

0 comments on commit 59089fc

Please sign in to comment.