Skip to content

Commit

Permalink
Replace Travis CI with GitHub Actions for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svenheden committed Mar 18, 2020
1 parent 4b0e62c commit 8862e71
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm ci
- run: npm test
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,27 @@

Validates Swedish personal identity numbers

[![Build Status][travis-image]][travis-url]
![Tests][tests-badge]
[![NPM version][npm-image]][npm-url]


## Install

```
$ npm install --save swedish-personal-identity-number-validator
```


## Usage

```js
import { isValid } from 'swedish-personal-identity-number-validator';
import { isValid } from "swedish-personal-identity-number-validator";

isValid('foobar') // => false
isValid("foobar"); // => false
```


## License

MIT © [Jonathan Svenheden](https://github.com/svenheden)

[npm-url]: https://npmjs.org/package/swedish-personal-identity-number-validator
[npm-image]: https://badge.fury.io/js/swedish-personal-identity-number-validator.svg
[travis-image]: https://travis-ci.org/svenheden/swedish-personal-identity-number-validator.svg
[travis-url]: https://travis-ci.org/svenheden/swedish-personal-identity-number-validator
[tests-badge]: https://github.com/svenheden/swedish-personal-identity-number-validator/workflows/Tests/badge.svg

0 comments on commit 8862e71

Please sign in to comment.