Skip to content

Commit d147b9b

Browse files
authored
chore: ci updates and style change (#146)
* ci: ignore documentation updates * chore(package): sort scripts alphabetically ascending * docs(readme): add badges * ci: test on multiple os * style(ci): use standardized template
1 parent a8f2e2c commit d147b9b

File tree

3 files changed

+36
-16
lines changed

3 files changed

+36
-16
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,44 @@
1-
name: CI workflow
2-
on: [push, pull_request]
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '*.md'
8+
pull_request:
9+
paths-ignore:
10+
- 'docs/**'
11+
- '*.md'
12+
313
jobs:
414
test:
5-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.os }}
16+
617
strategy:
718
matrix:
819
node-version: [10.x, 12.x, 14.x]
20+
os: [macos-latest, ubuntu-latest, windows-latest]
21+
922
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v2.1.5
13-
with:
14-
node-version: ${{ matrix.node-version }}
15-
- name: Install Dependencies
16-
run: npm install --ignore-scripts
17-
- name: Test
18-
run: npm test
23+
- uses: actions/checkout@v2
24+
25+
- name: Use Node.js
26+
uses: actions/setup-node@v2.1.5
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: Install Dependencies
31+
run: |
32+
npm install --ignore-scripts
33+
34+
- name: Run Tests
35+
run: |
36+
npm run test
1937
2038
automerge:
2139
needs: test
2240
runs-on: ubuntu-latest
2341
steps:
2442
- uses: fastify/github-action-merge-dependabot@v2.0.0
25-
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
2643
with:
27-
github-token: ${{secrets.github_token}}
44+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# fastify-http-proxy
22

3-
[![Build Status](https://travis-ci.org/fastify/fastify-http-proxy.svg?branch=master)](https://travis-ci.org/fastify/fastify-http-proxy)
3+
![CI](https://github.com/fastify/fastify-http-proxy/workflows/CI/badge.svg)
4+
[![NPM version](https://img.shields.io/npm/v/fastify-http-proxy.svg?style=flat)](https://www.npmjs.com/package/fastify-http-proxy)
5+
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-http-proxy/badge.svg)](https://snyk.io/test/github/fastify/fastify-http-proxy)
6+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
47

58
Proxy your http requests to another server, with hooks.
69
This [`fastify`](https://www.fastify.io) plugin forward all the request

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "proxy http requests, for Fastify",
55
"main": "index.js",
66
"scripts": {
7-
"test": "standard | snazzy && tap test/*.js && npm run typescript",
87
"lint:fix": "standard --fix",
98
"lint:typescript": "standard --fix --parser @typescript-eslint/parser --plugin typescript test/types/*.ts",
9+
"test": "standard | snazzy && tap test/*.js && npm run typescript",
1010
"typescript": "tsd"
1111
},
1212
"repository": {

0 commit comments

Comments
 (0)