From 32fa67ea97131f3b3154b08f136960a1ff21761d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Tue, 6 Sep 2022 16:35:50 +0200 Subject: [PATCH 1/2] chore: add GRE test to GitHub actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Migone --- .github/workflows/gre.yml | 25 +++++++++++++++++++ .../default-config/hardhat.config.js | 1 - .../default-config/hardhat.config.ts | 8 ++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gre.yml delete mode 100644 gre/test/fixture-projects/default-config/hardhat.config.js create mode 100644 gre/test/fixture-projects/default-config/hardhat.config.ts diff --git a/.github/workflows/gre.yml b/.github/workflows/gre.yml new file mode 100644 index 000000000..466ccfc8a --- /dev/null +++ b/.github/workflows/gre.yml @@ -0,0 +1,25 @@ +name: Run GRE tests + +on: + push: + branches: [dev] + pull_request: {} + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install packages + run: yarn install --non-interactive --frozen-lockfile + - name: Run GRE tests + run: yarn test:gre diff --git a/gre/test/fixture-projects/default-config/hardhat.config.js b/gre/test/fixture-projects/default-config/hardhat.config.js deleted file mode 100644 index 4ba52ba2c..000000000 --- a/gre/test/fixture-projects/default-config/hardhat.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {} diff --git a/gre/test/fixture-projects/default-config/hardhat.config.ts b/gre/test/fixture-projects/default-config/hardhat.config.ts new file mode 100644 index 000000000..17de4a585 --- /dev/null +++ b/gre/test/fixture-projects/default-config/hardhat.config.ts @@ -0,0 +1,8 @@ +module.exports = { + networks: { + mainnet: { + chainId: 1, + url: `https://mainnet.infura.io/v3/123456`, + }, + }, +} From 53af9db9e823ff3d3fa65b669ce5e0a315c73e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Tue, 6 Sep 2022 16:42:01 +0200 Subject: [PATCH 2/2] fix: build project before running gre tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Migone --- .github/workflows/gre.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/gre.yml b/.github/workflows/gre.yml index 466ccfc8a..2e5ade371 100644 --- a/.github/workflows/gre.yml +++ b/.github/workflows/gre.yml @@ -21,5 +21,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install packages run: yarn install --non-interactive --frozen-lockfile + - name: Build project + run: yarn build - name: Run GRE tests run: yarn test:gre