Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
Lint fix

Add test job to CI

Add secret

Disable certain tests in CI
  • Loading branch information
zemse committed Feb 15, 2024
1 parent 8030730 commit 16ef958
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,28 @@ on:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
env:
ALCHEMY: ${{ secrets.ALCHEMY }}
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/opcodes/extcodesize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function parse(step: InterpreterStep): AwaitedItem<EXTCODESIZE> {
size: Number(stepNext.stack[step.stack.length - 1].toString()),
},
format(): string {
let val = this.children?.at(3);
const val = this.children?.at(3);
val?.format?.();
return format(this);
},
Expand Down
2 changes: 1 addition & 1 deletion src/opcodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import mstore from "./mstore";
import mstore8 from "./mstore8";
import revert from "./revert";
import selfdestruct from "./selfdestruct";
import sha3 from "./sha3";
import sload from "./sload";
import sstore from "./sstore";
import sha3 from "./sha3";
import staticcall from "./staticcall";

export function parse(
Expand Down
6 changes: 3 additions & 3 deletions test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("Hardhat Runtime Environment extension", function () {
});
});

describe("Trace task", function () {
(process.env.CI ? describe.skip : describe)("Trace task", function () {
useEnvironment("hardhat-project");

before(async function () {
Expand Down Expand Up @@ -88,7 +88,7 @@ describe("Hardhat Runtime Environment extension", function () {
});
});

it.skip("arbitrum", async function () {
it("arbitrum", async function () {
await this.hre.run("trace", {
hash:
"0x582c18de13bb3c5068f6f8bd0e60f86be8e224ad351a0c3414e7c94aa975841f",
Expand All @@ -97,7 +97,7 @@ describe("Hardhat Runtime Environment extension", function () {
});
});

describe("Trace call", function () {
(process.env.CI ? describe.skip : describe)("Trace call", function () {
useEnvironment("hardhat-project");

before(async function () {
Expand Down

0 comments on commit 16ef958

Please sign in to comment.