Skip to content

Commit a1f082c

Browse files
XhmikosRTrott
authored andcommitted
Switch to GitHub Actions CI. (#24)
1 parent 90bd515 commit a1f082c

File tree

4 files changed

+31
-9
lines changed

4 files changed

+31
-9
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Clone repository
10+
uses: actions/checkout@v1
11+
12+
- name: Clone nodejs/node repository
13+
run: git clone https://github.com/nodejs/node.git tmp --depth 1
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: "12"
19+
20+
- run: node --version
21+
- run: npm --version
22+
23+
- name: Install npm dependencies
24+
run: npm ci
25+
env:
26+
CI: true
27+
28+
- name: Run tests
29+
run: npm run test-ci

.travis.yml

Lines changed: 0 additions & 7 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
# remark-preset-lint-node
22

3-
[![Build Status](https://travis-ci.com/nodejs/remark-preset-lint-node.svg?branch=master)](https://travis-ci.com/nodejs/remark-preset-lint-node)
3+
[![Build Status](https://github.com/nodejs/remark-preset-lint-node/workflows/Tests/badge.svg)](https://github.com/nodejs/remark-preset-lint-node/actions)
44

55
remark preset to configure remark-lint with settings for nodejs/node
66

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "prettier index.js --write",
8-
"travis": "remark tmp/doc/**/*.md --use . --frail --quiet"
8+
"test-ci": "remark tmp/doc/**/*.md --use . --frail --quiet"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)