From 28202ce6dc59fddee319a016920d65624738e9e3 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 2 Feb 2024 01:03:02 +1100 Subject: [PATCH] chore (e2e): reinstate e2e tests --- .github/workflows/ci.yml | 66 ++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e280829c5..66c610973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,39 +142,39 @@ jobs: cat access.log | grep -vz "WARN" cat access.log | grep -vz "ERR" - # test_e2e: - # needs: [test_smoke] - # runs-on: ubuntu-latest - # container: - # image: machines/puppeteer - # options: --user root - # env: - # ADMIN_PASSWORD: $2a$10$9OFbPZV4lYpYjU5eUi91o.kgeMyCuW11j878YBRri3gBwccq2lSFy - # APP_URL: http://127.0.0.1:8334 - # CI: true - # steps: - # - uses: actions/checkout@v3 - # - name: Clone test repo - # uses: actions/checkout@v3 - # with: - # repository: mickael-kerjean/filestash-test - # ssh-key: ${{ secrets.DEPLOY_KEY_FILESTASH_TEST }} - # path: test - # - name: Restore Build - # uses: actions/download-artifact@v4 - # with: - # name: build - # - name: Setup - # run: | - # cd ./test/e2e - # npm install - # - name: Run - # run: | - # chmod +x ./filestash - # ./filestash > /dev/null & - # cd ./test/e2e - # node servers/webdav.js > /dev/null & - # npm test + test_e2e: + needs: [test_smoke] + runs-on: ubuntu-latest + container: + image: machines/puppeteer + options: --user root + env: + ADMIN_PASSWORD: $2a$10$9OFbPZV4lYpYjU5eUi91o.kgeMyCuW11j878YBRri3gBwccq2lSFy + APP_URL: http://127.0.0.1:8334 + CI: true + steps: + - uses: actions/checkout@v3 + - name: Clone test repo + uses: actions/checkout@v3 + with: + repository: mickael-kerjean/filestash-test + ssh-key: ${{ secrets.DEPLOY_KEY_FILESTASH_TEST }} + path: test + - name: Restore Build + uses: actions/download-artifact@v4 + with: + name: build + - name: Setup + run: | + cd ./test/e2e + npm install + - name: Run + run: | + chmod +x ./filestash + ./filestash > /dev/null & + cd ./test/e2e + node servers/webdav.js > /dev/null & + npm test release_docker_amd64: # if: github.ref == 'refs/heads/master'