From 6de3b7da6485a554e79fb7ea3b9dfcd59c31692d Mon Sep 17 00:00:00 2001 From: nmlinaric Date: Sun, 4 Aug 2024 13:16:30 +0200 Subject: [PATCH] bump node version in CI and fix linter --- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- test/handlers/erc721/depositBurn.js | 2 -- test/helpers.js | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b77fded7..7bdcf273 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '14.x' + node-version: '16.x' - run: yarn install --frozen-lockfile --non-interactive @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '14.x' + node-version: '16.x' - run: yarn install --frozen-lockfile --non-interactive - name: Run linter diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 990ac0cd..4ed27d9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - name: Checkout code uses: actions/checkout@v2.4.0 @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - name: Checkout code uses: actions/checkout@v2.4.0 diff --git a/test/handlers/erc721/depositBurn.js b/test/handlers/erc721/depositBurn.js index 013f7c87..b91dc0ad 100644 --- a/test/handlers/erc721/depositBurn.js +++ b/test/handlers/erc721/depositBurn.js @@ -1,8 +1,6 @@ // The Licensed Work is (c) 2022 Sygma // SPDX-License-Identifier: LGPL-3.0-only -const TruffleAssert = require("truffle-assertions"); - const Helpers = require("../../helpers"); const ERC721MintableContract = artifacts.require("ERC721MinterBurnerPauser"); diff --git a/test/helpers.js b/test/helpers.js index 7a67e24e..9d4a373d 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -392,7 +392,7 @@ const reverts = async function(promise, expectedErrorMessage) { await promise; } catch (error) { if (expectedErrorMessage) { - const message = error.reason || error.hijackedStack.split('revert ')[1].split('\n')[0]; + const message = error.reason || error.hijackedStack.split("revert ")[1].split("\n")[0]; assert.equal(message, expectedErrorMessage); } return true;