From 3cedb5050c704400de2c1d93f2ecd592cc2010ce Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Sat, 30 Jan 2021 09:12:07 +0100 Subject: [PATCH] chore: Add github actions --- .github/workflows/build.yml | 65 +++++++++++++++++++++++++++++++++++++ README.md | 3 +- 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5d52b8b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,65 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Build + +on: + push: + pull_request: + branches: + - master + +jobs: + test-linux: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 10.x, 12.x, 14.x, 15.x ] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run test + run: npm test + + test-mac: + runs-on: macos-latest + + strategy: + matrix: + node-version: [ 10.x, 12.x, 14.x, 15.x ] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run test + run: npm test + + test-windows: + runs-on: windows-latest + + strategy: + matrix: + node-version: [ 10.x, 12.x, 14.x, 15.x ] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run test + run: npm test diff --git a/README.md b/README.md index 570cfed..516fd63 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# 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) +# 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) + > Markdown template helper. Uses remarkable to render markdown in templates. Should work with Handlebars, Lo-Dash or any template engine that supports helper functions.