From ad75a7ad099536d6074e9326c5096196821c7282 Mon Sep 17 00:00:00 2001 From: wade-portkey Date: Sat, 11 May 2024 14:39:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20config=20next=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextLint.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/nextLint.yml diff --git a/.github/workflows/nextLint.yml b/.github/workflows/nextLint.yml new file mode 100644 index 0000000..c3bda1c --- /dev/null +++ b/.github/workflows/nextLint.yml @@ -0,0 +1,33 @@ +name: Next Lint Check +# + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: '20' # Your node version, default 20 in 2024 + + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - name: Install Dependencies + run: yarn + + - name: Run ESLint + run: yarn lint \ No newline at end of file