35 lines
716 B
YAML
35 lines
716 B
YAML
name: test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
services:
|
|
redis:
|
|
image: redis
|
|
ports:
|
|
- 6379/tcp
|
|
options: --entrypoint redis-server
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [10.x, 12.x, 14.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: yarn install
|
|
- run: npm run jest
|
|
env:
|
|
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
|
|
- run: npm run docs:build
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|