Skip to content

undo validate change #151

undo validate change

undo validate change #151

Workflow file for this run

name: Prettier and Markdownlint test
# This action works with pull requests and pushes
on: push
permissions: read-all
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
check-latest: true
- name: Install dependencies
run: yarn install --immutable
- name: Prettify code # Use yarn script instead of a prettier action, in order to load plugins from .prettierrc.js
run: yarn run prettier-check
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
check-latest: true
- name: Install dependencies
run: yarn install --immutable
- name: Run markdownlint
run: yarn run markdownlint-check