From 29fbc58f74d06f2f41e73fcdcd801dac07ba2408 Mon Sep 17 00:00:00 2001 From: Miao ZhiCheng Date: Tue, 6 Feb 2024 16:03:29 +0200 Subject: [PATCH] [WORKFLOWS] make sure linting happens in more places (#1824) * [WORKFLOWS] make sure linting happens in more places * [WORKFLOWS] fix the shell script * fix typo: SuperfluidGDAv1DeployerLibrary --- .github/workflows/call.test-hot-fuzz.yml | 3 ++- .github/workflows/call.test-local-subgraph.yml | 6 ++++-- .github/workflows/call.test-sdk-core.yml | 8 ++++++-- packages/subgraph/tasks/getSFMeta.sh | 4 ++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/call.test-hot-fuzz.yml b/.github/workflows/call.test-hot-fuzz.yml index 0ec668d44e..620e654a26 100644 --- a/.github/workflows/call.test-hot-fuzz.yml +++ b/.github/workflows/call.test-hot-fuzz.yml @@ -27,7 +27,8 @@ jobs: echidna --version - name: Run Yarn Install - run: yarn install + run: | + yarn install - name: Run tests run: | diff --git a/.github/workflows/call.test-local-subgraph.yml b/.github/workflows/call.test-local-subgraph.yml index 0d55f56848..91231ac824 100644 --- a/.github/workflows/call.test-local-subgraph.yml +++ b/.github/workflows/call.test-local-subgraph.yml @@ -35,9 +35,11 @@ jobs: npx tsc --version - name: "Build contracts" - run: yarn build + run: | + yarn lint + yarn build working-directory: ./packages/ethereum-contracts - + - name: "Build" run: npx ts-node scripts/buildNetworkConfig.ts polygon-mainnet working-directory: ${{ env.subgraph-working-directory }} diff --git a/.github/workflows/call.test-sdk-core.yml b/.github/workflows/call.test-sdk-core.yml index 8b22ff0107..985399b550 100644 --- a/.github/workflows/call.test-sdk-core.yml +++ b/.github/workflows/call.test-sdk-core.yml @@ -39,7 +39,9 @@ jobs: run: yarn install --frozen-lockfile - name: "Build contracts" - run: yarn build + run: | + yarn lint + yarn build working-directory: ${{ env.ethereum-contracts-working-directory }} - name: "Start hardhat node" @@ -49,7 +51,9 @@ jobs: - name: "Build SDK-Core" # build sdk-core because of auto linking to dependency - run: yarn build + run: | + yarn lint + yarn build working-directory: ${{ env.sdk-core-working-directory }} - name: "Deploy Framework and Tokens" diff --git a/packages/subgraph/tasks/getSFMeta.sh b/packages/subgraph/tasks/getSFMeta.sh index a7497551d0..d011330ecb 100755 --- a/packages/subgraph/tasks/getSFMeta.sh +++ b/packages/subgraph/tasks/getSFMeta.sh @@ -1,12 +1,12 @@ +#!/usr/bin/env bash # This files is a bash script that is used to generate the src/meta.ignore.ts file. # This is used to fill out the SFMeta entity (see schema.graphql) # The different fields: `${SOME_FIELD}` must be set in the enivronment when running this script. -#!/usr/bin/env bash D="$(readlink -f "$(dirname "$0")")" BRANCH="$(git branch --show-current)" -PACKAGE_VERSION="$(jq -r ".version" $D/../package.json)" +PACKAGE_VERSION="$(jq -r ".version" "$D"/../package.json)" cat > "$D"/../src/meta.ignore.ts << EOF export let commitHash = "${COMMIT_HASH}";