Skip to content

chore(deps): update peter-evans/create-pull-request action to v5 #13164

chore(deps): update peter-evans/create-pull-request action to v5

chore(deps): update peter-evans/create-pull-request action to v5 #13164

Workflow file for this run

name: ⚙️ Lint
on:
pull_request:
push:
branches: [main]
jobs:
typecheck:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Typecheck
run: npm run typecheck
cspell:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Spell checks code
run: npm run cspell -- --no-progress
prettier:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup global variables
uses: ./.github/actions/variables
- uses: actions/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.TINKOFF_BOT_PAT }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run prettier
run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }}
- name: Apply changes after linting
if: env.SUPPORT_AUTO_PUSH == 'true'
uses: ./.github/actions/auto-push
stylelint:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup global variables
uses: ./.github/actions/variables
- uses: actions/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.TINKOFF_BOT_PAT }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run stylelint
run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }}
- name: Apply changes after linting
if: env.SUPPORT_AUTO_PUSH == 'true'
uses: ./.github/actions/auto-push
eslint:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup global variables
uses: ./.github/actions/variables
- uses: actions/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.TINKOFF_BOT_PAT }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run eslint
run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }}
- name: Apply changes after linting
if: env.SUPPORT_AUTO_PUSH == 'true'
uses: ./.github/actions/auto-push
concurrency:
group: lint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true