mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-29 19:10:51 -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
|
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:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
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
|
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -300,6 +300,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: vikunja_bin
|
name: vikunja_bin
|
||||||
- uses: ./.github/actions/setup-frontend
|
- uses: ./.github/actions/setup-frontend
|
||||||
|
with:
|
||||||
|
install-e2e-binaries: true
|
||||||
- name: Download Frontend
|
- name: Download Frontend
|
||||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||||
with:
|
with:
|
||||||
@@ -307,6 +309,7 @@ jobs:
|
|||||||
path: ./frontend/dist
|
path: ./frontend/dist
|
||||||
- run: chmod +x ./vikunja
|
- run: chmod +x ./vikunja
|
||||||
- uses: cypress-io/github-action@v6
|
- uses: cypress-io/github-action@v6
|
||||||
|
timeout-minutes: 20
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
@@ -321,6 +324,7 @@ jobs:
|
|||||||
VIKUNJA_DATABASE_TYPE: sqlite
|
VIKUNJA_DATABASE_TYPE: sqlite
|
||||||
VIKUNJA_RATELIMIT_NOAUTHLIMIT: 1000
|
VIKUNJA_RATELIMIT_NOAUTHLIMIT: 1000
|
||||||
with:
|
with:
|
||||||
|
install: false
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
browser: chrome
|
browser: chrome
|
||||||
record: true
|
record: true
|
||||||
|
|||||||
Reference in New Issue
Block a user