Skip to content

Interaction Tests #4934

Interaction Tests

Interaction Tests #4934

name: Interaction Tests
on: deployment_status
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
if: github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'storybook') && !contains(github.event.deployment_status.target_url, 'vitejs')
runs-on: ubuntu-latest
timeout-minutes: 10
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
always-auth: true
cache: npm
- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v3
with:
path: |
**/node_modules
node_modules
key: node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: node_modules
- name: Install npm dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
- name: Run interaction tests
run: npm run test-storybook
env:
TARGET_URL: "${{ github.event.deployment_status.target_url }}"