Skip to content

Commit

Permalink
Switch to gihub CI (#117)
Browse files Browse the repository at this point in the history
* Switch to gihub CI
support node 12, 14, 16

* fix coverage

* Update package.json

* fix
  • Loading branch information
tomap committed Nov 25, 2021
1 parent 027a959 commit 8a9defd
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 40 deletions.
20 changes: 4 additions & 16 deletions .github/dependabot.yml
Expand Up @@ -4,19 +4,7 @@ updates:
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20
versioning-strategy: widen
ignore:
- dependency-name: postcss
versions:
- 8.2.10
- 8.2.12
- 8.2.4
- 8.2.5
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- dependency-name: sinon
versions:
- 10.0.0
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
50 changes: 50 additions & 0 deletions .github/workflows/tester.yml
@@ -0,0 +1,50 @@
name: Tester

on: [push, pull_request]

jobs:
tester:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['12.x', '14.x', '16.x']
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Test
run: npm test
env:
CI: true
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Coverage
run: npm run test-cov
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,5 @@ node_modules/
tmp/
*.log
.idea/
.nyc_output/
.nyc_output/
coverage/
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
"test-cov": "nyc --reporter=lcovonly npm test"
},
"directories": {
"lib": "./lib"
Expand Down Expand Up @@ -45,6 +45,6 @@
"sinon": "^9.0.2"
},
"engines": {
"node": ">=8.6.0"
"node": ">=12"
}
}

0 comments on commit 8a9defd

Please sign in to comment.