Skip to content

build(deps-dev): bump @lightbase/eslint-config from 4.2.1 to 4.3.0 #2891

build(deps-dev): bump @lightbase/eslint-config from 4.2.1 to 4.3.0

build(deps-dev): bump @lightbase/eslint-config from 4.2.1 to 4.3.0 #2891

Workflow file for this run

name: Checks
on:
push:
branches: [main]
pull_request:
jobs:
lint:
permissions:
contents: read
timeout-minutes: 15
strategy:
matrix:
node: [24]
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: "**/package.json"
- name: Install dependencies
run: |
npm install
- name: Run compas lint
run: |
CI=false npx compas generate
npx compas lint
types:
permissions:
contents: read
timeout-minutes: 15
strategy:
matrix:
node: [24]
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: "**/package.json"
- name: Install dependencies
run: |
npm install
- name: Generate and run types
run: |
npx compas generate --skip-lint
npx compas run types
test:
permissions:
contents: read
timeout-minutes: 15
strategy:
matrix:
node: [24, 25]
postgresVersion: [16, 17]
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: "**/package.json"
- name: Install dependencies
run: |
npm install
- name: Generate and migrate
run: |
npx compas docker up --postgres-version ${{ matrix.postgresVersion }}
npx compas generate --skip-lint
npx compas migrate
- name: Run compas test
run: |
npx compas test
- name: Persist debug artifacts
uses: actions/upload-artifact@v7
if: failure()
with:
name:
cache-artifact-test-${{ matrix.node }}-${{ matrix.postgresVersion }}
path: .cache/
sync-website:
if: ${{ github.event.ref == 'refs/heads/main' }}
permissions:
contents: read
timeout-minutes: 15
strategy:
matrix:
node: [24]
postgresVersion: [14]
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: "**/package.json"
- name: Install dependencies
run: |
npm install
- name: Build and deploy
run: |
echo 'VITE_USER_NODE_ENV=production' > ./docs/.env
npx compas run docs:build
cd ./docs/.vitepress/dist
echo 'compasjs.com' > CNAME
git config --global init.defaultBranch main
git config --global user.email "github@dirkdevisser.nl"
git config --global user.name "Dirk de Visser[bot]"
git init
git add -A
git commit -m "chore: deploy pages for ${{ github.sha }}"
git push -f https://dirkdev98:${{ secrets.COMPAS_GITHUB_TOKEN }}@github.com/compasjs/compas.git main:gh-pages
analyze:
name: Analyze
if: ${{ github.event.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: ["javascript"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4