mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
23901d1454
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
36 lines
830 B
YAML
36 lines
830 B
YAML
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: Lint and check format
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
pull_request:
|
|
branches: [ develop ]
|
|
|
|
env:
|
|
NODEJS_VERSION: 20
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
name: Lint files and check formatting
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: Setup node
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
NODEJS_VERSION: ${{ env.NODEJS_VERSION }}
|
|
|
|
- name: Run ESLint
|
|
run: yarn turbo run lint
|
|
shell: bash
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_API: ${{ vars.TURBO_API }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
|