leaflet.pub astro loader
1name: Linting and Formatting
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches: ["main"]
9
10
11concurrency:
12 group: ${{ github.workflow }}-${{ github.ref }}
13 cancel-in-progress: true
14
15jobs:
16 lint:
17 runs-on: ubuntu-latest
18 steps:
19 - uses: actions/checkout@v4
20 - name: Install PNPM
21 uses: pnpm/action-setup@v4
22 with:
23 version: 10
24 - name: Setup Node
25 uses: actions/setup-node@v4
26 with:
27 cache: "pnpm"
28 - name: Install dependencies
29 run: pnpm install
30 - name: Lint
31 run: pnpm lint
32 - name: Format
33 run: pnpm format