Skip to content

Commit

Permalink
chore: add storybook-tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cafrias committed Dec 10, 2024
1 parent 31e7001 commit 73c3271
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,4 @@ jobs:
node-version: ${{ matrix.node }}

- name: Test 🧪
run: npm run coverage
- name: Codecov ☂
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.node == env.COVERAGE_VERSION }}
with:
directory: coverage
run: npm run test
29 changes: 29 additions & 0 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Storybook Tests

on: deployment_status

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Storybook tests
run: yarn test-storybook -- --ci --coverage
env:
TARGET_URL: "${{ github.event.deployment_status.target_url }}"
- name: Codecov ☂
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.node == env.COVERAGE_VERSION }}
with:
directory: coverage

0 comments on commit 73c3271

Please sign in to comment.