orchard/.github/workflows/dev-chores.yml
2022-11-05 00:05:28 +00:00

55 lines
1.4 KiB
YAML

name: Developer Chores
on: [pull_request]
jobs:
linter-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'
- uses: pnpm/action-setup@v2
name: Setup pnpm 🚧
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory ⌨️
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup cache 🔒
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Run linter 👀
run: pnpm format-write
- name: Comment Suggestions 🗒️
uses: getsentry/action-git-diff-suggestions@main
with:
message: Prettier Suggestion