From aae6a2ce9fe8ab0e30001e7ade809f63f80cadba Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Fri, 17 Nov 2023 10:49:49 +0100 Subject: [PATCH] Test 2 --- .github/workflows/core.yaml | 4 +++- lint.sh | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/core.yaml b/.github/workflows/core.yaml index 3b27955e6..a3ec992e3 100644 --- a/.github/workflows/core.yaml +++ b/.github/workflows/core.yaml @@ -4,7 +4,6 @@ on: push: branches: - main - - gh-workflows-per-workspace paths: - "core/**" pull_request: @@ -41,6 +40,9 @@ jobs: - name: Install Dependencies in core package run: yarn install --prefer-offline --frozen-lockfile + - name: Make the script file executable + run: cd .. && chmod +x lint.sh + - name: Format run: cd .. && yarn format -w core diff --git a/lint.sh b/lint.sh index 60f94544b..c40df38cb 100755 --- a/lint.sh +++ b/lint.sh @@ -1,4 +1,4 @@ -set -euo pipefail +set -eu # Defaults, can be overwritten by input parameters. WORKSPACE_DEFAULT="" @@ -56,7 +56,7 @@ then fi -function lint_js() { +function lint_js () { fix_flag="" if($FIX) then @@ -69,7 +69,7 @@ function lint_js() { eval "$cmd" } -function lint_config() { +function lint_config () { fix_flag="-c" if($FIX) then @@ -82,7 +82,7 @@ function lint_config() { eval "$cmd" } -function lint_sol() { +function lint_sol () { prettier_fix_flag="-c" solhint_fix_flag="" if($FIX)