You've already forked node-redis
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:
5
.github/workflows/documentation.yml
vendored
5
.github/workflows/documentation.yml
vendored
@@ -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:
|
||||
|
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user