Skip to content

Commit

Permalink
build: added scanning offers in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Jul 17, 2024
1 parent 0b305e9 commit fa510ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/actions/prepare-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,23 @@ runs:
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-sdk-task-executor && npm i && npm run build"
- name: Check yagna status
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "yagna net ping && yagna net status && yagna net sessions"
- name: Install Cypress
if: ${{ inputs.type == 'cypress' }}
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-sdk-task-executor && ./node_modules/.bin/cypress install"
- name: Run a preliminary scan of offers
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "npm install --no-progress -g @prekucki/wait-for-n && wait-for-n --limit=6 --appkey=try_golem --subnet=$YAGNA_SUBNET"
- name: List down sessions seen on that requestor
shell: bash
run: |
docker exec docker-requestor-1 /bin/sh -c "yagna net sessions"
- name: Run a secondary scan of offers
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "npx --no-progress --yes @golem-sdk/cli market scan -k try_golem --subnet-tag $YAGNA_SUBNET --payment-network $PAYMENT_NETWORK"
2 changes: 1 addition & 1 deletion .github/workflows/regular-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
regular-checks:
name: Build and unit-test on supported platforms and NodeJS versions
name: Build and unit-test
strategy:
matrix:
# Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ env:

jobs:
regular-checks:
name: Regular checks
uses: ./.github/workflows/regular-checks.yml

run-e2e-tests:
Expand Down

0 comments on commit fa510ea

Please sign in to comment.