From 22d8da22bbfc825a21fdaf99fbdb92b8a38b8747 Mon Sep 17 00:00:00 2001 From: Benny Chew Date: Thu, 30 Sep 2021 21:57:30 +1000 Subject: [PATCH] ci: update actions ci to use setup-node@v2 --- .github/workflows/node.js.yml | 12 ++++-------- README.md | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 146dfe2..36dbf6b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,13 +1,9 @@ -# 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: @@ -15,14 +11,14 @@ jobs: strategy: matrix: - node-version: [14.x] + node: [14.x] steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: ${{ matrix.node }} - run: npm ci - run: npm test - name: Upload coverage to Codecov diff --git a/README.md b/README.md index d5db4ca..24756fd 100644 --- a/README.md +++ b/README.md @@ -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://github.com/Adslot/express-pug-static/workflows/Node.js%20CI/badge.svg) +![Build Status](https://github.com/Adslot/express-pug-static/actions/workflows/node.js.yml/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