Skip to content

Commit

Permalink
Merge branch 'main' into Rello-Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello authored Jun 13, 2024
2 parents 231f308 + a77de95 commit 072ab1a
Show file tree
Hide file tree
Showing 23 changed files with 779 additions and 2,040 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

146 changes: 0 additions & 146 deletions .github/workflows/cypress.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Playwright Tests
on:
pull_request:
branches: [main]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout app
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Check composer.json
id: check_composer
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
with:
files: 'composer.json'

- name: Install composer dependencies
if: steps.check_composer.outputs.files_exists == 'true'
run: composer install --no-dev

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^10'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install node dependencies & build app
run: |
npm ci
TESTING=true npm run build --if-present
- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Playwright tests
run: npx playwright test

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ v8-compile-cache-0/
.phpunit.result.cache
clover.unit.xml
clover.integration.xml
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
66 changes: 0 additions & 66 deletions cypress.config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions cypress/.eslintrc.json

This file was deleted.

70 changes: 0 additions & 70 deletions cypress/e2e/create-form/create.cy.ts

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/support/commands.ts

This file was deleted.

Loading

0 comments on commit 072ab1a

Please sign in to comment.