Skip to content

Commit d17c752

Browse files
committed
ci: drop travis to github actions
1 parent ec9ae15 commit d17c752

File tree

11 files changed

+59
-24
lines changed

11 files changed

+59
-24
lines changed
File renamed without changes.
File renamed without changes.

.github/funding.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: posthtml
5+
open_collective: posthtml
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
File renamed without changes.

.github/workflows/nodejs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Actions Status
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
branches:
6+
- master
7+
env:
8+
CI: true
9+
10+
jobs:
11+
run:
12+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node: [10, 12, 14]
19+
os: [ubuntu-latest]
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v2
24+
25+
- name: Set Node.js version
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: Install npm dependencies
31+
run: npm ci
32+
33+
- name: Run tests
34+
run: npm run test
35+
36+
- name: Run Coveralls
37+
uses: coverallsapp/github-action@master
38+
with:
39+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.nycrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"reporter": ["lcov", "text"],
3+
"extension": [".js"]
4+
}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.
File renamed without changes.

LICENSE renamed to license

File renamed without changes.

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
"main": "lib",
99
"scripts": {
1010
"lint": "standard",
11-
"test": "nyc ava --timeout=1m",
12-
"version": "standard-changelog -i CHANGELOG.md -w && git add CHANGELOG.md && git commit -m \"build: update changelog\"",
13-
"docs": "jsdoc2md lib/*.js > INDEX.md",
14-
"clean": "rm -rf .nyc_output coverage jsdoc-api dmd",
15-
"start": "npm run clean && npm run lint && npm test"
11+
"test": "npm run lint && nyc ava --timeout=1m",
12+
"version": "standard-changelog -i CHANGELOG.md -w && git add changelog.md",
13+
"docs": "jsdoc2md lib/*.js > INDEX.md"
1614
},
1715
"dependencies": {
1816
"fclone": "^1.0.11",
@@ -21,7 +19,6 @@
2119
},
2220
"devDependencies": {
2321
"ava": "^3.13.0",
24-
"coveralls": "^3.1.0",
2522
"jsdoc-to-markdown": "^6.0.1",
2623
"nyc": "^15.1.0",
2724
"posthtml": "^0.13.4",
@@ -30,8 +27,7 @@
3027
"standard-changelog": "^2.0.24"
3128
},
3229
"files": [
33-
"lib",
34-
"LICENSE"
30+
"lib"
3531
],
3632
"keywords": [
3733
"expressions",

0 commit comments

Comments
 (0)