mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-18 13:26:00 -04:00
[ENG-1624] E2E Tests (#2192)
* Basic cypress test * Add e2e test command * Add full e2e test for creating and deleting a library * Add cypress to CI * Fix cypress CI - Use arm macos for running cypress - Setup rust on cypress job - Increase cypress CI timeout * Remove unused APPLE_SIGNING_IDENTITY envvar * Update deps again + Try to fix Cypress CI setup * Update deps again * Only test default location if it exists * Use latest v18 NodeJS in CI * Increase minimum node version due to updated dependency - @typescript-eslint/eslint-plugin now requires node >=18.18 * Fix testing failing for optional default locations * Enable video recording - Fix screenshot and video artifact uploading * Fix location test - Use correct location name, instead of trying to derive it from the internal id
This commit is contained in:
committed by
GitHub
parent
d6f899a93d
commit
d04dbcbbfc
45
.github/workflows/ci.yml
vendored
45
.github/workflows/ci.yml
vendored
@@ -48,6 +48,51 @@ jobs:
|
||||
- name: Perform linting
|
||||
run: pnpm lint
|
||||
|
||||
cypress:
|
||||
name: Cypress
|
||||
runs-on: macos-14
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup System and Rust
|
||||
uses: ./.github/actions/setup-system
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
target: aarch64-apple-darwin
|
||||
|
||||
- name: Setup Node.js, pnpm and dependencies
|
||||
uses: ./.github/actions/setup-pnpm
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup Cypress
|
||||
uses: cypress-io/github-action@v6
|
||||
with:
|
||||
runTests: false
|
||||
working-directory: .
|
||||
|
||||
- name: E2E test
|
||||
uses: cypress-io/github-action@v6
|
||||
with:
|
||||
install: false
|
||||
command: pnpm test:e2e
|
||||
working-directory: apps/web
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: cypress-screenshots
|
||||
path: apps/web/cypress/screenshots
|
||||
if-no-files-found: ignore
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: cypress-videos
|
||||
path: apps/web/cypress/videos
|
||||
if-no-files-found: ignore
|
||||
|
||||
rustfmt:
|
||||
name: Rust Formatting
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user