Skip to content

fix: 💚 linting tool #6

fix: 💚 linting tool

fix: 💚 linting tool #6

Workflow file for this run

name: Test
on:
- push
jobs:
setup:
uses: ./.github/workflows/common/setup.yml

Check failure on line 8 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
cache-key: ${{ runner.os }}-npm-v1-${{ hashFiles('**/package-lock.json') }}
fetch-depth: 0
# Run visual and composition tests with Chromatic
visual-and-composition:
needs: setup
runs-on: ubuntu-latest
steps:
- id: test-visual-composition
name: Test Visual and Composition
uses: ./.github/workflows/common/chromatic.yml
# Run interaction and accessibility tests
interaction-and-accessibility:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Build Storybook
run: npm run build:storybook --quiet
- name: Serve Storybook and run tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && npm run test:storybook"
# Run user flow tests with Cypress
user-flow:
needs: setup
runs-on: ubuntu-latest
steps:
- id: test-user-flow
name: Test User Flow
uses: ./.github/workflows/common/cypress.yml