From 69b7094bbad056e5a5cd4d54857d11268d9599fe Mon Sep 17 00:00:00 2001 From: Leibale Eidelman Date: Fri, 5 Mar 2021 04:39:39 -0500 Subject: [PATCH] Workflows fixes (#1570) * upgrade workflow actions * fix setup-node version * change redis-64 version to 3.0.503 --- .github/workflows/benchmark.yml | 8 ++++---- .github/workflows/linting.yml | 8 ++++---- .github/workflows/tests.yml | 8 ++++---- .github/workflows/tests_windows.yml | 10 +++++----- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 88974e42da..c3db31f3bb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 08a5f1e5ac..d110707ee0 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a7829a9d1b..b3a608ac77 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/.github/workflows/tests_windows.yml b/.github/workflows/tests_windows.yml index 504cb6a4f8..2f5e7e441a 100644 --- a/.github/workflows/tests_windows.yml +++ b/.github/workflows/tests_windows.yml @@ -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