Skip to content

add custom linting scripts to datapack/scripts workflows #103

add custom linting scripts to datapack/scripts workflows

add custom linting scripts to datapack/scripts workflows #103

Workflow file for this run

name: scripts
on: [push]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version-file: package.json
- run: yarn
- name: Run Prettier
run: yarn start lint.scripts.prettier.check
lint:
runs-on: ubuntu-latest
needs: format
steps:
- uses: actions/checkout@v4
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version-file: package.json
- run: yarn
- name: Run ESLint
run: yarn start lint.scripts.eslint.check
- name: Run custom lint scripts on non-datapacks, non-resourcepack files
run: yarn start lint.scripts.custom.other