mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-26 12:24:26 +03:00
a255340a7b
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: E2E Tests Playwright
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
inputs:
|
|
sha:
|
|
type: string
|
|
required: false
|
|
description: Target SHA
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
- uses: actions/checkout@v4
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
with:
|
|
ref: ${{ github.event.inputs.sha }}
|
|
- name: Setup node environment
|
|
uses: ./.github/actions/init-env-node
|
|
|
|
- id: get_playwright_version
|
|
uses: eviden-actions/get-playwright-version@v1
|
|
- name: Cache playwright binaries
|
|
uses: actions/cache@v4
|
|
id: playwright-cache
|
|
with:
|
|
path: |
|
|
~/.cache/ms-playwright
|
|
key: ${{ runner.os }}-playwright-${{ steps.get_playwright_version.outputs.playwright-version }}
|
|
- if: steps.playwright-cache.outputs.cache-hit != 'true'
|
|
run: cd apps/web && pnpm exec playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
run: pnpm exec turbo run test:e2e:web
|
|
- uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|