diff --git a/.github/workflows/goth-example.yml b/.github/workflows/examples-nightly.yml similarity index 92% rename from .github/workflows/goth-example.yml rename to .github/workflows/examples-nightly.yml index cc03e8a98..6bf5229f2 100644 --- a/.github/workflows/goth-example.yml +++ b/.github/workflows/examples-nightly.yml @@ -1,13 +1,13 @@ -name: Nightly Example Tests +name: Nightly Examples Tests on: + schedule: + # run this workflow every day at 2:00 AM UTC + - cron: "0 4 * * *" + # Allows triggering the workflow manually workflow_dispatch: - push: - branches: - - "test/JST-363/example-tests" - jobs: prepare-matrix-master-only: name: Prepare matrix JSON @@ -56,6 +56,7 @@ jobs: rm -rf ../goth/assets python -m goth create-assets ../goth/assets sed -Ezi 's/(use\-proxy:\s)(True)/\1False/mg' ../goth/assets/goth-config.yml + sed -Ezi 's/(use\-prerelease:\s)(false)/\1true\n release-tag: "0.13.0-rc21"/mg' ../goth/assets/goth-config.yml sed -i '/^ENTRYPOINT/i ENV YAGNA_AUTOCONF_APPKEY=try_golem' ../goth/assets/docker/yagna-goth-deb.Dockerfile - name: Disconnect Docker containers from default network diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06c9006b4..20f0e47cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -161,6 +161,26 @@ jobs: run: rm -rf .cypress #endregion + #region Examples test execution + - name: Run the Examples tests using Goth + env: + GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + npm run test:examples + + - name: Upload test logs + uses: actions/upload-artifact@v2 + if: always() + with: + name: goth-logs + path: /tmp/goth-tests + + # Only relevant for self-hosted runners + - name: Remove test logs + if: always() + run: rm -rf /tmp/goth-tests + #endregion + release: name: Release the SDK to NPM and GitHub needs: run-integration-and-e2e-tests