1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

run tests on pull requests too

This commit is contained in:
leibale
2021-11-15 16:45:10 -05:00
parent 3979e30222
commit ddf539ad5f
2 changed files with 4 additions and 12 deletions

View File

@@ -9,21 +9,16 @@ on:
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: Use Node.js
uses: actions/setup-node@v2.3.0
- name: Install Packages
run: npm ci
- name: Generate Documentation
run: npm run documentation
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:

View File

@@ -5,6 +5,10 @@ on:
branches:
- master
- v4.0
pull_request:
branches:
- master
- v4.0
jobs:
tests:
@@ -14,30 +18,23 @@ jobs:
matrix:
node-version: [12, 14, 16]
redis-version: [5, 6.0, 6.2]
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.3.0
with:
node-version: ${{ matrix.node-version }}
- name: Update npm
run: npm i -g npm
if: ${{ matrix.node-version <= 14 }}
- name: Install Packages
run: npm ci
- name: Build tests tools
run: npm run build:tests-tools
- name: Run Tests
run: npm run test -- --forbid-only --redis-version=${{ matrix.redis-version }}
- name: Upload to Codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import