Skip to content

build(deps-dev): bump eslint-plugin-sonarjs from 0.24.0 to 1.0.2 #26

build(deps-dev): bump eslint-plugin-sonarjs from 0.24.0 to 1.0.2

build(deps-dev): bump eslint-plugin-sonarjs from 0.24.0 to 1.0.2 #26

Workflow file for this run

name: Test
on:
push:
paths:
- '**/*.js'
- 'package.json'
- 'package-lock.json'
- '.eslintrc.json'
workflow_dispatch:
inputs:
autofix:
description: 'Autofix by ESLint'
required: false
type: boolean
jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm install
- name: Run ESLint
if: ${{ !inputs.autofix }}
run: npm run lint
- name: Run ESLint (autofix)
id: eslint_autofix
if: ${{ inputs.autofix }}
run: npm run lint:fix
continue-on-error: true
- name: Push to GitHub
if: ${{ inputs.autofix }}
uses: EndBug/[email protected]
with:
author_name: 'GitHub Actions'
author_email: '[email protected]'
message: |
:art: Autofix by ESLint
Co-authored-by: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
- name: Post Run ESLint (autofix)
if: ${{ steps.eslint_autofix.outcome == 'failure' }}
run: exit 1
tsc:
name: Type Check
runs-on: ubuntu-latest
if: ${{ !inputs.autofix }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm install
- name: Run tsc
run: npm run test