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