diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-02 00:12:11 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-04 13:31:51 +0300 |
commit | 08386c96cf2b942c0d93f32aa0d39505ad6510ac (patch) | |
tree | f3ee4dc1d65fd946148119c6cfa2c4b1c9acd79a /.github/workflows | |
parent | 290af2b60216700e2a8f7d4c3b1e9ddf0a0f2394 (diff) |
Cypress test skeleton
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cypress.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml new file mode 100644 index 000000000..c143d373c --- /dev/null +++ b/.github/workflows/cypress.yml @@ -0,0 +1,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 }} |