mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-05-19 23:26:36 +00:00
28 lines
534 B
YAML
28 lines
534 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- run: pnpm lint
|
|
|
|
# Update find roots when adding new top-level JS dirs.
|
|
- name: Syntax check all JS
|
|
run: find api scripts src -name '*.js' -print0 | xargs -0 -n1 node --check
|