From db3d5c363db1009161f8d39ab9f86cabadb61155 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Tue, 22 Mar 2022 02:23:15 +0600 Subject: [PATCH 1/2] Add lint and prettier step on test-deploy --- .github/workflows/test-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 02aa481..1529f85 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -26,6 +26,12 @@ jobs: - name: Install dependencies run: npm ci + - name: Run lint + run: npm run lint + + - name: Run prettier + run: npm run prettier + - name: Build run: npm run build env: From e0b62bb38c466b14e972669afbb960eae2f33fe0 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Tue, 22 Mar 2022 02:23:38 +0600 Subject: [PATCH 2/2] Delete lint.yml --- .github/workflows/lint.yml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 73c818d..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - run: npm ci - - - name: Run linter - run: npm run lint - - - name: Run prettier - run: npm run prettier