From 9a5d7860b093e536b051ab12bc9938b41bc07a67 Mon Sep 17 00:00:00 2001 From: Luighi Date: Fri, 18 Mar 2022 16:19:50 -0500 Subject: [PATCH 1/2] Update lint workflow - Fix name from eslint to lint as in package.json and apply to all matched files - Check prettier for matched files --- .github/workflows/lint.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index abb7e89..7a9ce67 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,6 +29,10 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + - name: prettier + run: | + npm run prettier + - name: lint run: | - npm run eslint + npm run lint . From 15ce9934bda0a8a99cfe2460a38684acad968049 Mon Sep 17 00:00:00 2001 From: Luighi Date: Fri, 18 Mar 2022 20:06:57 -0500 Subject: [PATCH 2/2] Add install dependencies to workflow --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7a9ce67..fc63d92 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12 + - name: Cache node modules # https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows uses: actions/cache@v2 @@ -29,6 +30,11 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + + - name: Install dependencies + run: | + npm ci + - name: prettier run: | npm run prettier