Skip to content

Commit 3cedb50

Browse files
committed
chore: Add github actions
1 parent 0fa01ba commit 3cedb50

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

.github/workflows/build.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test-linux:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [ 10.x, 12.x, 14.x, 15.x ]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run test
29+
run: npm test
30+
31+
test-mac:
32+
runs-on: macos-latest
33+
34+
strategy:
35+
matrix:
36+
node-version: [ 10.x, 12.x, 14.x, 15.x ]
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Use Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v1
42+
with:
43+
node-version: ${{ matrix.node-version }}
44+
- name: Install dependencies
45+
run: npm ci
46+
- name: Run test
47+
run: npm test
48+
49+
test-windows:
50+
runs-on: windows-latest
51+
52+
strategy:
53+
matrix:
54+
node-version: [ 10.x, 12.x, 14.x, 15.x ]
55+
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Use Node.js ${{ matrix.node-version }}
59+
uses: actions/setup-node@v1
60+
with:
61+
node-version: ${{ matrix.node-version }}
62+
- name: Install dependencies
63+
run: npm ci
64+
- name: Run test
65+
run: npm test

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# helper-markdown [![NPM version](https://img.shields.io/npm/v/helper-markdown.svg?style=flat)](https://www.npmjs.com/package/helper-markdown) [![NPM monthly downloads](https://img.shields.io/npm/dm/helper-markdown.svg?style=flat)](https://npmjs.org/package/helper-markdown) [![NPM total downloads](https://img.shields.io/npm/dt/helper-markdown.svg?style=flat)](https://npmjs.org/package/helper-markdown) [![Linux Build Status](https://img.shields.io/travis/helpers/helper-markdown.svg?style=flat&label=Travis)](https://travis-ci.org/helpers/helper-markdown)
1+
# helper-markdown [![NPM version](https://img.shields.io/npm/v/helper-markdown.svg?style=flat)](https://www.npmjs.com/package/helper-markdown) [![NPM monthly downloads](https://img.shields.io/npm/dm/helper-markdown.svg?style=flat)](https://npmjs.org/package/helper-markdown) [![NPM total downloads](https://img.shields.io/npm/dt/helper-markdown.svg?style=flat)](https://npmjs.org/package/helper-markdown) [![Linux Build Status](https://img.shields.io/travis/helpers/helper-markdown.svg?style=flat&label=Travis)](https://travis-ci.org/helpers/helper-markdown)[![Build](https://github.com/helpers/helper-markdown/workflows/Build/badge.svg)](https://github.com/helpers/helper-markdown/actions?query=workflow%3A%22Build%22)
2+
23

34
> Markdown template helper. Uses remarkable to render markdown in templates. Should work with Handlebars, Lo-Dash or any template engine that supports helper functions.
45

0 commit comments

Comments
 (0)