diff --git a/.github/workflows/contract-tests.yml b/.github/workflows/contract-tests.yml index 4f6fc6c69..8cbbf3684 100644 --- a/.github/workflows/contract-tests.yml +++ b/.github/workflows/contract-tests.yml @@ -28,8 +28,6 @@ jobs: node-version: 16 - name: Install dependencies run: cd ../../ && yarn install --pure-lockfile - - name: Check formatting - run: yarn run formatting:check - name: Compile contracts run: yarn run build && yarn run build:npm - name: Run Hardhat Tests diff --git a/.github/workflows/style-check.yml b/.github/workflows/style-check.yml new file mode 100644 index 000000000..b654c5229 --- /dev/null +++ b/.github/workflows/style-check.yml @@ -0,0 +1,28 @@ +name: Style Checks +on: + push: + +env: + working-directory: . + +jobs: + formatting: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{env.working-directory}} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + ref: ${{ github.ref }} + fetch-depth: 0 + - name: Install node + uses: actions/setup-node@v3 + with: + cache: 'yarn' + node-version: 16 + - name: Install dependencies + run: yarn install --pure-lockfile + - name: Check with prettier + run: yarn run prettier:check