diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 025180072d2..8bee0f45f95 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -18,9 +18,17 @@ jobs: # containers: [1, 2, 3] php-versions: [ '7.4' ] databases: [ 'sqlite' ] - server-versions: [ 'master' ] + server-versions: [ 'stable21' ] steps: + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Set up npm7 + run: npm i -g npm@7 + - name: Checkout server uses: actions/checkout@v2 with: diff --git a/cypress/Dockerfile b/cypress/Dockerfile index 4f2fc4495c7..9ccaeeef54f 100644 --- a/cypress/Dockerfile +++ b/cypress/Dockerfile @@ -2,6 +2,7 @@ FROM nextcloudci/server:server-17 RUN mkdir /var/www/html/data RUN chown -R www-data:www-data /var/www/html/data +ENV BRANCH stable21 ENTRYPOINT /usr/local/bin/initAndRun.sh