Skip to content

SW-881: Show dataset ID in Main information section #2226

SW-881: Show dataset ID in Main information section

SW-881: Show dataset ID in Main information section #2226

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run prettier:ci
- run: npm run lint:ci
- run: npm run build
- run: npm run test:ci
- name: Run docker compose
uses: hoverkraft-tech/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.0
with:
compose-version: 'latest'
- name: Get Playwright version
id: pw
run: |
version=$(node -p 'require("@playwright/test/package.json").version')
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
id: pw-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }}
- name: Install Playwright Browsers
if: steps.pw-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium
- name: Run Playwright tests
run: npm run test:e2e
env:
APP_ENV: ci
CONSUMER_URL: http://localhost:3000
BACKEND_URL: http://localhost:3001
SESSION_STORE: memory
SESSION_SECRET: peakaboo
JWT_SECRET: jwtsecret
SUPPORT_EMAIL: support@example.com
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright/results/
retention-days: 30