Skip to content

chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 in the action-deps group #33

chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 in the action-deps group

chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 in the action-deps group #33

Workflow file for this run

name: ci
on:
pull_request:
env:
HUSKY: 0
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: ".nvmrc"
- name: Install commitlint
run: npm install -D @commitlint/cli @commitlint/config-conventional
- name: Print versions
run: |
git --version
node --version
npm --version
npx commitlint --version
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
check-workflows:
permissions:
security-events: write
contents: read
actions: read
needs:
- commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
smoke:
needs:
- commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: |
npm run prettier:check
npm run lint
npm run fallow
npm run db:generate
npm run db:migrate
test:
needs:
- commitlint
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: authuser
POSTGRES_PASSWORD: authpass
POSTGRES_DB: authdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run db:generate
- run: npm run db:migrate
- run: npm test -- --disable-coverage
env:
DATABASE_URL: postgres://authuser:authpass@localhost:5432/authdb
GITHUB_CLIENT_ID: dummy-id-for-testing
GITHUB_CLIENT_SECRET: dummy-secret-for-testing