Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WORKFLOWS] make sure linting happens in more places #1824

Merged
merged 3 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/call.test-hot-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
echidna --version

- name: Run Yarn Install
run: yarn install
run: |
yarn install

- name: Run tests
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/call.test-local-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/call.test-sdk-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/subgraph/tasks/getSFMeta.sh
Original file line number Diff line number Diff line change
@@ -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}";
Expand Down
Loading