From 544c39168b171d74570baa2391b095aa14af47fc Mon Sep 17 00:00:00 2001 From: Brian Bowman Date: Tue, 19 Jul 2022 05:31:43 -0500 Subject: [PATCH] Add prettier check to CI --- .github/workflows/frontend-checks.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/frontend-checks.yml b/.github/workflows/frontend-checks.yml index 993b279..eb90bdf 100644 --- a/.github/workflows/frontend-checks.yml +++ b/.github/workflows/frontend-checks.yml @@ -2,34 +2,30 @@ name: Check frontend on: push: - paths: - - '.github/workflows/frontend-checks.yml' - - 'src/**' - - '.eslintrc.json' - - 'package.json' - - 'tsconfig.json' - - 'yarn.lock' + paths-ignore: + - '**.lock' + - '**.rs' + - '**.toml' pull_request: - paths: - - '.github/workflows/frontend-checks.yml' - - 'src/**' - - '.eslintrc.json' - - 'package.json' - - 'tsconfig.json' - - 'yarn.lock' + paths-ignore: + - '**.lock' + - '**.rs' + - '**.toml' concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true jobs: - tsc-eslint-checks: + prettier-tsc-eslint-checks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install modules run: yarn + - name: Run prettier + run: yarn prettier --check . - name: Run tsc run: yarn tsc --noEmit - name: Run ESLint