From 3936ca5d6e7c5d518db957a878e64b59e11cb1d6 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 6 Apr 2021 08:02:20 +0100 Subject: [PATCH 1/3] docs(readme): add badges --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 64724518..5de08caa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # fastify-static -![CI workflow](https://github.com/fastify/fastify-static/workflows/CI%20workflow/badge.svg) [![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-static/badge.svg)](https://snyk.io/test/github/fastify/fastify-static) + +![CI](https://github.com/fastify/fastify-static/workflows/CI/badge.svg) +[![NPM version](https://img.shields.io/npm/v/fastify-static.svg?style=flat)](https://www.npmjs.com/package/fastify-static) +[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-static/badge.svg)](https://snyk.io/test/github/fastify/fastify-static) +[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) Plugin for serving static files as fast as possible. Supports Fastify version `3.x`. From 4b117952266a0a143a7e67f62142a37070c60f20 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 6 Apr 2021 08:31:02 +0100 Subject: [PATCH 2/3] ci: ignore documentation updates --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9e6ab07..07dcfacd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,14 @@ name: CI workflow -on: [push, pull_request] + +on: + push: + paths-ignore: + - 'docs/**' + - '*.md' + pull_request: + paths-ignore: + - 'docs/**' + - '*.md' jobs: test: runs-on: ubuntu-latest From 468d1c9a1222c46066bb92d6dd26802969892428 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 6 Apr 2021 09:36:15 +0100 Subject: [PATCH 3/3] style(ci): use standardized template --- .github/workflows/ci.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07dcfacd..6fd0d7d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI workflow +name: CI on: push: @@ -9,28 +9,36 @@ on: paths-ignore: - 'docs/**' - '*.md' + jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: matrix: node-version: [10.x, 12.x, 14.x] + os: [macos-latest, ubuntu-latest] + steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2.1.5 - with: - node-version: ${{ matrix.node-version }} - - name: Install Dependencies - run: npm install --ignore-scripts - - name: Test - run: npm test + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2.1.5 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Dependencies + run: | + npm install --ignore-scripts + + - name: Run Tests + run: | + npm run test automerge: needs: test runs-on: ubuntu-latest steps: - uses: fastify/github-action-merge-dependabot@v2.0.0 - if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} with: - github-token: ${{secrets.github_token}} + github-token: ${{ secrets.GITHUB_TOKEN }}