You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- v4.0
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- v4.0
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: ['14', '16', '18', '19']
|
|
redis-version: ['5', '6.0', '6.2', '7.0']
|
|
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
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
|
|
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
|
|
shasum -a 256 -c codecov.SHA256SUM
|
|
chmod +x codecov
|
|
./codecov
|