From 6d551e36c299f18561eac3fb68123a5305178eff Mon Sep 17 00:00:00 2001 From: defifofum Date: Wed, 17 Aug 2022 16:50:00 -0400 Subject: [PATCH] refactor: Add lint github action --- .github/workflows/{tests.yml => lint-test.yml} | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) rename .github/workflows/{tests.yml => lint-test.yml} (94%) diff --git a/.github/workflows/tests.yml b/.github/workflows/lint-test.yml similarity index 94% rename from .github/workflows/tests.yml rename to .github/workflows/lint-test.yml index bca38e1..8f7a27c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/lint-test.yml @@ -1,4 +1,4 @@ -name: tests +name: lint & test on: push: @@ -32,4 +32,5 @@ jobs: restore-keys: | ${{ matrix.os }}-yarn- - run: yarn + - run: yarn lint:ci - run: yarn test:ci \ No newline at end of file diff --git a/package.json b/package.json index 162daff..80b8985 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "compile": "hardhat compile", "lint:sol": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "lint:sol:fix": "prettier --write 'contracts/**/*.sol'", + "lint:ci": "yarn lint:sol", "test": "hardhat test", "test:gas": "env ENABLE_GAS_REPORT=true yarn test", "test:ci": "yarn test",