Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit c80bcc1

Browse files
authored
Merge pull request #559 from ldapjs/gh-actions
Add GitHub actions testing
2 parents 4b2e55e + 7b5085f commit c80bcc1

File tree

4 files changed

+54
-43
lines changed

4 files changed

+54
-43
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'Lint And Test'
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- next
8+
9+
jobs:
10+
lint:
11+
name: Lint Check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v1
16+
- name: Install Packages
17+
run: npm install
18+
- name: Lint Code
19+
run: npm run lint:ci
20+
21+
run_tests:
22+
name: Unit Tests
23+
strategy:
24+
matrix:
25+
os:
26+
- ubuntu-latest
27+
- windows-latest
28+
node:
29+
- 10.13.0
30+
- 10.x
31+
- 12.x
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- uses: actions/checkout@v1
35+
- uses: actions/setup-node@v1
36+
with:
37+
node-version: ${{ matrix.node }}
38+
- name: Install Packages
39+
run: npm install
40+
- name: Run Tests
41+
run: npm run test:ci
42+
- name: Coveralls Parallel
43+
uses: coverallsapp/github-action@master
44+
with:
45+
github-token: ${{ secrets.github_token }}
46+
parallel: true
47+
- name: Coveralls Finished
48+
uses: coverallsapp/github-action@master
49+
with:
50+
github-token: ${{ secrets.github_token }}
51+
parallel-finished: true

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LDAPjs
22

3-
[![Build Status](https://travis-ci.org/ldapjs/node-ldapjs.svg)](https://travis-ci.org/ldapjs/node-ldapjs)
3+
[![Build Status](https://github.com/ldapjs/node-ldapjs/workflows/main/badge.svg)]
44
[![Coverage Status](https://coveralls.io/repos/github/ldapjs/node-ldapjs/badge.svg?branch=ci-cleanup)](https://coveralls.io/github/ldapjs/node-ldapjs?branch=ci-cleanup)
55

66
LDAPjs makes the LDAP protocol a first class citizen in Node.js.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lib": "./lib"
1515
},
1616
"engines": {
17-
"node": ">=10.16.0"
17+
"node": ">=10.13.0"
1818
},
1919
"dependencies": {
2020
"abstract-logging": "^1.0.0",
@@ -35,6 +35,7 @@
3535
},
3636
"scripts": {
3737
"test": "tap --no-cov",
38+
"test:ci": "tap --coverage-report=lcovonly",
3839
"test:cov": "tap",
3940
"test:cov:html": "tap --coverage-report=html",
4041
"test:watch": "tap -n -w --no-coverage-report",

0 commit comments

Comments
 (0)