2022-12-11 18:46:30 -05:00
|
|
|
# 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:
|
2023-05-09 05:38:02 -04:00
|
|
|
NODEJS_VERSION: 20
|
2022-12-11 18:46:30 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Lint files and check formatting
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-10-17 14:05:43 -04:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2022-12-11 18:46:30 -05:00
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: ./.github/actions/setup-node
|
|
|
|
with:
|
|
|
|
NODEJS_VERSION: ${{ env.NODEJS_VERSION }}
|
|
|
|
|
|
|
|
- name: Run ESLint
|
2023-09-07 13:56:20 -04:00
|
|
|
run: yarn lint
|
2022-12-11 18:46:30 -05:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
TURBO_API: ${{ vars.TURBO_API }}
|
|
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
|
|
|