diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9e6ab0..539b3f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,27 +1,44 @@ -name: CI workflow -on: [push, pull_request] +name: CI + +on: + push: + paths-ignore: + - 'docs/**' + - '*.md' + pull_request: + 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, windows-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 }} diff --git a/README.md b/README.md index b583260..fe99575 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # fastify-http-proxy -[![Build Status](https://travis-ci.org/fastify/fastify-http-proxy.svg?branch=master)](https://travis-ci.org/fastify/fastify-http-proxy) +![CI](https://github.com/fastify/fastify-http-proxy/workflows/CI/badge.svg) +[![NPM version](https://img.shields.io/npm/v/fastify-http-proxy.svg?style=flat)](https://www.npmjs.com/package/fastify-http-proxy) +[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-http-proxy/badge.svg)](https://snyk.io/test/github/fastify/fastify-http-proxy) +[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) Proxy your http requests to another server, with hooks. This [`fastify`](https://www.fastify.io) plugin forward all the request diff --git a/package.json b/package.json index 77a5a20..dbd8f52 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "proxy http requests, for Fastify", "main": "index.js", "scripts": { - "test": "standard | snazzy && tap test/*.js && npm run typescript", "lint:fix": "standard --fix", "lint:typescript": "standard --fix --parser @typescript-eslint/parser --plugin typescript test/types/*.ts", + "test": "standard | snazzy && tap test/*.js && npm run typescript", "typescript": "tsd" }, "repository": {