Skip to content

Commit

Permalink
Workflows fixes (#1570)
Browse files Browse the repository at this point in the history
* upgrade workflow actions
* fix setup-node version
* change redis-64 version to 3.0.503
  • Loading branch information
leibale committed Mar 5, 2021
1 parent 49c4131 commit 69b7094
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Expand Up @@ -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"
Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/linting.yml
Expand Up @@ -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
Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Expand Up @@ -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"
Expand All @@ -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
10 changes: 5 additions & 5 deletions .github/workflows/tests_windows.yml
Expand Up @@ -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: |
Expand All @@ -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 }}

Expand All @@ -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

0 comments on commit 69b7094

Please sign in to comment.