feat(DsfrNavigation): 🐛 ajoute de l'attribut id
au composant DsfrNavigationItem
depuis le composant DsfrNavigation
#1039
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit & Component Tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
tests: | |
name: Run unit tests and CT tests | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
env: | |
VITE_APP_GIT_TAG: ${{github.ref}} | |
VITE_APP_GIT_SHA: ${{github.sha}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install pnpm | |
run: npm i -g pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint (show only errors) | |
run: pnpm lint --quiet | |
- name: Check exports | |
run: pnpm check-exports-ci | |
- name: Test | |
run: pnpm test | |
- name: Install Playwright | |
run: pnpx playwright install --with-deps | |
- name: Build Storybook | |
run: pnpm build-storybook --quiet | |
- name: Serve Storybook and run tests | |
env: | |
TEST_STORYBOOK_URL: http://localhost:6006 | |
run: | | |
pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | |
"pnpx http-server storybook-static --port 6006 --silent" \ | |
"pnpx wait-on tcp:6006 && pnpm test-storybook" | |
- name: Build | |
run: pnpm build |