Skip to content

Antti/frontend

Antti/frontend #121

# This workflow runs given linters.
name: Lint
# Trigger the workflow on pull request
on: [pull_request]
env:
NODE_VERSION: '18.x'
# 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
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_extensions: js,ts,tsx
tsc: true
tsc_args: '--noemit'