hexo-yam/.github/workflows/linter.yml

23 lines
512 B
YAML
Raw Normal View History

2020-09-05 12:43:05 +00:00
name: Linter
on: [push, pull_request]
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2023-10-01 04:05:08 +00:00
- name: Install Bun
uses: oven-sh/setup-bun@v1
2020-09-05 12:43:05 +00:00
- name: Cache NPM dependencies
uses: actions/cache@v3
2020-09-05 12:43:05 +00:00
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: |
${{ runner.os }}-npm-cache
- name: Install Dependencies
2023-10-01 04:05:08 +00:00
run: bun install
2020-09-05 12:43:05 +00:00
- name: Lint
2023-10-01 04:05:08 +00:00
run: bun run lint