-
Notifications
You must be signed in to change notification settings - Fork 40
37 lines (37 loc) · 946 Bytes
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: "Lint"
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
lint:
name: "Lint Everything"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "bewuethr/[email protected]"
with:
config-file: ".yamllint"
- uses: "pnpm/action-setup@v3"
with:
version: 8
- name: "Export pnpm store"
shell: "bash"
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: "Setup pnpm cache"
uses: "actions/cache@v4"
with:
path: "${{ env.STORE_PATH }}"
key: "${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
restore-keys: "${{ runner.os }}-pnpm-store-"
- name: "Install dependencies"
shell: "bash"
run: "pnpm install"
- name: "Lint"
shell: "bash"
run: "pnpm run lint"