Skip to content

Commit

Permalink
Merge branch 'master' into ts-readonly-arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Jul 23, 2021
2 parents 2451519 + 5a29d11 commit ff996e2
Show file tree
Hide file tree
Showing 5 changed files with 23,680 additions and 114 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
# Don't bail all runs so that we can learn if we introduced a feature that only works in
# a more recent Node.js version
fail-fast: false
matrix:
node: [12, 14, 16]
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Submit coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: Node.js ${{ matrix.node }}
parallel: true

teardown:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

lint:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint

docs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run docs:build
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/feature-running-imperatively.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Check the examples below to understand how this method can help you:

```js
const express = require('express');
const { validateResult, ValidationChain } = require('express-validator');
const { validationResult, ValidationChain } = require('express-validator');
// can be reused by many routes

// parallel processing
Expand Down Expand Up @@ -58,7 +58,7 @@ const validate = validations => {

```typescript
import express from 'express';
import { validateResult, ValidationChain } from 'express-validator';
import { validationResult, ValidationChain } from 'express-validator';
// can be reused by many routes

// parallel processing
Expand Down

0 comments on commit ff996e2

Please sign in to comment.