Skip to content

Commit

Permalink
Merge pull request #18 from malijs/gh_action
Browse files Browse the repository at this point in the history
Add nodejs github action and remove travisci file
  • Loading branch information
bojand authored Oct 21, 2019
2 parents 800ecd1 + 34fe8c1 commit 876abb7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 14 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and test
run: |
npm ci
npm test
env:
CI: true
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Mali JWT authentication middleware.

[![npm version](https://img.shields.io/npm/v/@malijs/jwt.svg?style=flat-square)](https://www.npmjs.com/package/@malijs/jwt)
[![build status](https://img.shields.io/travis/malijs/jwt/master.svg?style=flat-square)](https://travis-ci.org/malijs/jwt)
[![build status](https://github.com/malijs/jwt/workflows/Node%20CI/badge.svg)](https://github.com/malijs/jwt/actions)

[Mali](https://github.com/malijs/mali) middleware that validates JSON Web Tokens and sets `ctx.user`
(by default) if a valid token is provided.
Expand Down

0 comments on commit 876abb7

Please # to comment.