Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(cypress): Test against stable27 #857

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

strategy:
matrix:
server-versions: ['stable25', 'master']
server-versions: ['stable25', 'stable27', 'master']

steps:
- name: Checkout server
Expand Down Expand Up @@ -99,6 +99,7 @@ jobs:
with:
fallbackNode: '^20'
fallbackNpm: '^9'
path: apps/${{ env.APP_NAME }}

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
Expand All @@ -109,6 +110,12 @@ jobs:
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build
working-directory: apps/${{ env.APP_NAME }}
run: |
npm ci
npm run build --if-present

- name: Save context
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
Expand All @@ -126,7 +133,7 @@ jobs:
containers: [1, 2, 3, 4]
php-versions: ['8.0']
databases: ['sqlite']
server-versions: ['stable25', 'master']
server-versions: ['stable25', 'stable27', 'master']

steps:
- name: Restore context
Expand Down Expand Up @@ -160,12 +167,6 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer i --no-dev

- name: Install dependencies & build
working-directory: apps/${{ env.APP_NAME }}
run: |
npm ci
npm run build --if-present

- name: Set up Nextcloud
env:
DB_PORT: 4444
Expand All @@ -192,7 +193,7 @@ jobs:
- name: Run Nextcloud
run: php -S 0.0.0.0:8081 &

- name: Run Cypress
- name: Cypress run
uses: cypress-io/github-action@v5
with:
record: true
Expand Down
Loading