1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +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: jobs:
documentation: documentation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2.3.0 uses: actions/setup-node@v2.3.0
- name: Install Packages - name: Install Packages
run: npm ci run: npm ci
- name: Generate Documentation - name: Generate Documentation
run: npm run documentation run: npm run documentation
- name: Upload Documentation to Wiki - name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1 uses: SwiftDocOrg/github-wiki-publish-action@v1
with: with:

View File

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