name: basic tests

on:
  push:
    branches:
      - 'user/**'
      - 'feature/**'
      - 'improvement/**'
      - 'bugfix/**'
      - 'w/**'
      - 'q/**'
      - 'hotfix/**'
      - 'dependabot/**'
  pull_request:
    types:
      - opened
    branches:
      - 'feature/bump-core-ui-version-to-**'

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6
      - name: Install node
        uses: actions/setup-node@v6
        with:
          node-version: 24
      - run: npm ci
        env:
          # storybook-webmcp is hosted on GitHub Packages (npm.pkg.github.com).
          # Even public GHPR packages require an auth token.
          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - run: npm run test
      - run: npm run lint
