Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cypress.yml « workflows « .github - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c143d373c5f58eb4bdbc074c39e0cb91fb05686b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Cypress

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x]

    steps:
    - name: Checkout text app
      uses: actions/checkout@v2
    - name: Build the stack
      run: |
        cd cypress/
        docker-compose up -d
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: Wait for server
      env:
        CYPRESS_baseUrl: http://localhost:8081/index.php
      run: |
          npm install -g wait-on
          wait-on -i 500 -t 240000 $CYPRESS_baseUrl || (cd cypress && docker-compose logs && exit 1)
          cd cypress/ && docker-compose exec -T nextcloud bash /var/www/html/apps/text/cypress/server.sh
    - name: Cypress run
      uses: cypress-io/github-action@v1
      with:
        record: true
      env:
        CYPRESS_baseUrl: http://localhost:8081/index.php
        CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}