Skip to content

Commit

Permalink
Switch to GitHub Actions CI. (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and Trott committed Sep 28, 2019
1 parent 90bd515 commit a1f082c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v1

- name: Clone nodejs/node repository
run: git clone https://github.com/nodejs/node.git tmp --depth 1

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm ci
env:
CI: true

- name: Run tests
run: npm run test-ci
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# remark-preset-lint-node

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

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "prettier index.js --write",
"travis": "remark tmp/doc/**/*.md --use . --frail --quiet"
"test-ci": "remark tmp/doc/**/*.md --use . --frail --quiet"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a1f082c

Please sign in to comment.