Skip to content

Merge pull request #69 from simonyiszk/simonyi-konf #313

Merge pull request #69 from simonyiszk/simonyi-konf

Merge pull request #69 from simonyiszk/simonyi-konf #313

Workflow file for this run

name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
- dev
# Replace pull_request with pull_request_target if you
# plan to use this action with forks, see the Limitations section
pull_request:
branches:
- main
- dev
workflow_dispatch:
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install dependencies (internal PR)
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
run: yarn install --immutable
- name: Install dependencies (external PR)
if: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
run: yarn install --immutable
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: "--max-warnings 0"
eslint_extensions: js,jsx,ts,tsx