Skip to content

Commit 8af5a4b

Browse files
authored
Move CI away from Travis and to Github Actions (#147)
1 parent 2a7f943 commit 8af5a4b

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

.github/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.x, 12.x, 14.x, 15.x]
12+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Test execution
26+
run: npm run cover

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
.vscode
44
package-lock.json
55
*.log
6+
coverage/*

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Passport-wsfed-saml2
22
=============
33

4-
[![Build Status](https://travis-ci.org/auth0/passport-wsfed-saml2.png)](https://travis-ci.org/auth0/passport-wsfed-saml2)
4+
![Build Status](https://github.com/auth0/passport-wsfed-saml2/workflows/Tests/badge.svg)
55

66
This is a ws-federation protocol + SAML2 tokens authentication provider for [Passport](http://passportjs.org/).
77

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "4.3.0",
44
"description": "SAML2 Protocol and WS-Fed library",
55
"scripts": {
6-
"test": "mocha --reporter spec --recursive"
6+
"test": "./node_modules/.bin/_mocha -R spec --colors",
7+
"cover": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec --colors"
78
},
89
"author": {
910
"name": "Matias Woloski",
@@ -37,6 +38,7 @@
3738
"chai-passport-strategy": "1.x.x",
3839
"cheerio": "~0.19.0",
3940
"express": "~3.11.0",
41+
"istanbul": "^0.4.5",
4042
"mocha": "~1.8.1",
4143
"passport": "^0.3.2",
4244
"request": "~2.88.0",

0 commit comments

Comments
 (0)