mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 13:50:33 +00:00
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
name: Lint Code Base
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Code Base
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
statuses: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
id: setup-node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install Dependencies
|
|
id: install
|
|
run: npm ci
|
|
|
|
- name: Lint Code Base
|
|
id: super-linter
|
|
uses: super-linter/super-linter/slim@v6
|
|
env:
|
|
DEFAULT_BRANCH: main
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TYPESCRIPT_DEFAULT_STYLE: prettier
|
|
VALIDATE_CHECKOV: false
|
|
VALIDATE_MARKDOWN: false
|
|
VALIDATE_JSCPD: false
|
|
VALIDATE_NATURAL_LANGUAGE: false
|