Skip to content

Commit

Permalink
Merge pull request #13 from Adslot/github-actions
Browse files Browse the repository at this point in the history
ci: migrate to github actions
  • Loading branch information
adityasabnis committed Nov 6, 2020
2 parents d6d7cec + 2ede9e4 commit f521c3d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 385 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage/coverage-final.json
6 changes: 0 additions & 6 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
Expand Up @@ -2,7 +2,7 @@ express-pug-static
=============================================================================================================================================

[![npm version](https://badge.fury.io/js/express-pug-static.svg)](https://badge.fury.io/js/express-pug-static)
[![Build Status](https://api.travis-ci.org/Adslot/express-pug-static.png)](https://travis-ci.org/Adslot/express-pug-static)
![Build Status](https://github.com/Adslot/express-pug-static/workflows/Node.js%20CI/badge.svg)
[![codecov](https://codecov.io/gh/Adslot/express-pug-static/branch/master/graph/badge.svg)](https://codecov.io/gh/Adslot/express-pug-static)

Connect (ExpressJS) middleware for serving pug files as static html
Expand Down
Loading

0 comments on commit f521c3d

Please sign in to comment.