Skip to content

Commit 05e3768

Browse files
committed
ci: migrate to github action from travis
1 parent 1638a07 commit 05e3768

File tree

4 files changed

+52
-11
lines changed

4 files changed

+52
-11
lines changed

.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']

.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 }}"

.travis.yml

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
},
1717
"scripts": {
1818
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md",
19-
"test": "c8 mocha",
20-
"coverage": "nyc report --reporter=text-lcov | coveralls"
19+
"test": "c8 mocha"
2120
},
2221
"repository": "posthtml/posthtml-parser",
2322
"author": "Ivan Voischev <voischev.ivan@ya.ru>",

0 commit comments

Comments
 (0)