1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Workflows fixes (#1570)

* upgrade workflow actions
* fix setup-node version
* change redis-64 version to 3.0.503
This commit is contained in:
Leibale Eidelman
2021-03-05 04:39:39 -05:00
committed by GitHub
parent 49c4131d87
commit 69b7094bba
4 changed files with 17 additions and 17 deletions

View File

@@ -13,17 +13,17 @@ jobs:
redis-version: [5]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- name: Setup Redis
uses: shogo82148/actions-setup-redis@v1.0.1
uses: shogo82148/actions-setup-redis@v1.9.7
with:
redis-version: ${{ matrix.redis-version }}
auto-start: "true"
@@ -32,7 +32,7 @@ jobs:
- name: Run Benchmark
run: npm run benchmark > benchmark-output.txt && cat benchmark-output.txt
- name: Upload Benchmark Result
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2.2.2
with:
name: benchmark-output.txt
path: benchmark-output.txt

View File

@@ -7,10 +7,10 @@ jobs:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2.1.5
with:
node-version: 12
- run: npm i --no-audit --prefer-offline
@@ -20,12 +20,12 @@ jobs:
run: npm run lint:report
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@1.0.4
uses: ataylorme/eslint-annotate-action@1.1.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "eslint-report.json"
- name: Upload ESLint report
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2.2.2
with:
name: eslint-report.json
path: eslint-report.json

View File

@@ -13,17 +13,17 @@ jobs:
redis-version: [4.x, 5.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- name: Setup Redis
uses: shogo82148/actions-setup-redis@v1.0.1
uses: shogo82148/actions-setup-redis@v1.9.7
with:
redis-version: ${{ matrix.redis-version }}
auto-start: "false"
@@ -46,7 +46,7 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: Upload Coverage Report
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2.2.2
with:
name: coverage
path: coverage

View File

@@ -11,14 +11,14 @@ jobs:
matrix:
node-version: [6.x, 8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: Install Redis
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v1.4.0
with:
args: install redis-64 --no-progress
args: install redis-64 --version=3.0.503 --no-progress
- name: Start Redis
run: |
@@ -27,7 +27,7 @@ jobs:
redis-cli config set stop-writes-on-bgsave-error no
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
@@ -43,7 +43,7 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: Upload Coverage Report
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2.2.2
with:
name: coverage
path: coverage