orchard/.github/workflows/pr-chores.yml
2022-09-20 09:00:05 -05:00

41 lines
944 B
YAML

name: PR Chores
on: [pull_request]
jobs:
linter-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Setup pnpm 🚧F
uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Setup node env 🏗
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Install ESLint 💼
run: npm init @eslint/config
- name: Run linter 👀
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
prettier_args: "'**/*.{js,json,ts,css,vue,less}'"