Skip to content

Commit

Permalink
move travis to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lagden committed Oct 15, 2021
1 parent 6600bbe commit 659d014
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 7 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js CI

on:
push:
branches: [master]

pull_request:
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
env:
CI: true

- name: Run test
run: npm test

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

[![NPM version][npm-img]][npm]
[![Build Status][ci-img]][ci]

[![Coverage Status][coveralls-img]][coveralls]

[npm-img]: https://img.shields.io/npm/v/@tadashi/koa-jwt-authz.svg
[npm]: https://www.npmjs.com/package/@tadashi/koa-jwt-authz
[ci-img]: https://travis-ci.org/lagden/koa-jwt-authz.svg
[ci]: https://travis-ci.org/lagden/koa-jwt-authz
[ci-img]: https://github.com/lagden/koa-jwt-authz/actions/workflows/nodejs.yml/badge.svg
[ci]: https://github.com/lagden/koa-jwt-authz/actions/workflows/nodejs.yml
[coveralls-img]: https://coveralls.io/repos/github/lagden/koa-jwt-authz/badge.svg?branch=master
[coveralls]: https://coveralls.io/github/lagden/koa-jwt-authz?branch=master


Validate a JWTs `scope` to authorize access to an endpoint.
Expand Down

0 comments on commit 659d014

Please sign in to comment.