From c2850104c08b5500fa7eed5d3ea059dc16bd7256 Mon Sep 17 00:00:00 2001 From: Igor Konnov Date: Tue, 16 Apr 2024 12:21:43 +0200 Subject: [PATCH] add prettier check into CI --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00122ee..613b3db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,10 +28,10 @@ jobs: - name: unit tests run: cd ./solarkraft && npm run test - lint-and-license: + housekeeping: runs-on: ubuntu-latest strategy: - fail-fast: true + fail-fast: false steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -43,3 +43,5 @@ jobs: run: cd ./solarkraft && npm run lint - name: check license run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'" + - name: check formatting + run: cd ./solarkraft && (npx prettier --config .prettierrc --check src/**/*.ts test/**/*.ts) || echo "fix with 'npm run format'" \ No newline at end of file