mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-12 10:04:48 -05:00
feat: add install-e2e-binaries input flag for frontend setup composite action (#878)
This commit is contained in:
committed by
GitHub
parent
82e4a9d0f4
commit
7d954cd5bf
14
.github/actions/setup-frontend/action.yml
vendored
14
.github/actions/setup-frontend/action.yml
vendored
@@ -1,8 +1,20 @@
|
||||
name: Setup Frontend
|
||||
description: Common setup for frontend jobs using pnpm
|
||||
description: |
|
||||
Common setup for frontend jobs using pnpm
|
||||
Skips heavy binary installs that are needed for e2e by default
|
||||
inputs:
|
||||
install-e2e-binaries:
|
||||
description: 'Install heavy e2e binary downloads'
|
||||
required: false
|
||||
default: 'false'
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- if: inputs.install-e2e-binaries == 'false'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "CYPRESS_INSTALL_BINARY=0" >> $GITHUB_ENV
|
||||
echo "PUPPETEER_SKIP_DOWNLOAD=true" >> $GITHUB_ENV
|
||||
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -300,6 +300,8 @@ jobs:
|
||||
with:
|
||||
name: vikunja_bin
|
||||
- uses: ./.github/actions/setup-frontend
|
||||
with:
|
||||
install-e2e-binaries: true
|
||||
- name: Download Frontend
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
@@ -307,6 +309,7 @@ jobs:
|
||||
path: ./frontend/dist
|
||||
- run: chmod +x ./vikunja
|
||||
- uses: cypress-io/github-action@v6
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
@@ -321,6 +324,7 @@ jobs:
|
||||
VIKUNJA_DATABASE_TYPE: sqlite
|
||||
VIKUNJA_RATELIMIT_NOAUTHLIMIT: 1000
|
||||
with:
|
||||
install: false
|
||||
working-directory: frontend
|
||||
browser: chrome
|
||||
record: true
|
||||
|
||||
Reference in New Issue
Block a user