database grooming #267
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check and Format | |
# PR opened, closed or updated | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
checks: | |
name: Run Checks | |
runs-on: ubuntu-latest | |
env: | |
PUBLIC_PB_HOST: ${{ vars.PB_HOST }} | |
PB_ADMIN_PASSWORD: ${{ secrets.PB_ADMIN_PASSWORD }} | |
PB_ADMIN_EMAIL: ${{ secrets.PB_ADMIN_EMAIL }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: get deps | |
run: npm ci | |
- name: Run pocketbase-typegen | |
run: make pb_types | |
- name: Lint and check formatting | |
run: npm run lint |