From 696a6cadbb0eff972d750be4c251ebee63b909ea Mon Sep 17 00:00:00 2001 From: Dan Steren Date: Tue, 28 Nov 2023 12:20:48 -0700 Subject: [PATCH] Add to CI/CD --- .github/workflows/test.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 954e2368c9..5f2566dddd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -211,6 +211,9 @@ jobs: - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests && matrix.azle_source == 'repo' }} shell: bash -l {0} run: npm link + - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} + shell: bash -l {0} + run: npm run lint - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} run: dfx start --clean --background --host 127.0.0.1:8000 diff --git a/package.json b/package.json index 35a52e2ea4..673c7c35bc 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "description": "TypeScript and JavaScript CDK for the Internet Computer", "scripts": { "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .js,.ts --fix", + "lint": "if [ \"$npm_config_fix\" ]; then eslint . --ext .js,.ts --fix; else eslint . --ext .js,.ts; fi", "prepare": "husky install", "test": "test/test.sh" },