Skip to content

Commit

Permalink
fix: Replaced linting action with a more up to date version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMachin1997 committed Oct 31, 2024
1 parent 7e79e73 commit 742f2d3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/linting-action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
Expand All @@ -20,16 +18,13 @@ jobs:
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 20
cache: 'yarn'

# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npm ci
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
run: yarn lint # assumes you have a `lint` script in package.json for ESLint and Prettier

0 comments on commit 742f2d3

Please sign in to comment.