Skip to content

feat: cds.features.count_as_string #7825

feat: cds.features.count_as_string

feat: cds.features.count_as_string #7825

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]
# Allow parallel jobs on `main`, so that each commit is tested. For PRs, run only the latest commit.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
name: Tests
permissions:
packages: write
env:
cds_features_pool: true # TODO: make it work with Postgres test setup
FORCE_COLOR: true
strategy:
fail-fast: true
matrix:
node: [22]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm install -g @sap/cds-dk
- run: npm ci
- run: npm run lint
- id: hxe
uses: ./.github/actions/hxe
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# testing
- run: npm test -ws
env:
TAG: ${{ steps.hxe.outputs.TAG }}
IMAGE_ID: ${{ steps.hxe.outputs.IMAGE_ID }}
- name: sqlite driver (node:sqlite)
run: npm test -w sqlite
env:
CDS_REQUIRES_DB_DRIVER: 'node'
- name: sqlite driver (sql.js)
run: npm test -w sqlite
env:
CDS_REQUIRES_DB_DRIVER: 'sql.js'