Skip to content

Commit

Permalink
test(examples): fixed ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 25, 2023
1 parent 3395e34 commit 36c0e3a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36c0e3a

Please sign in to comment.