-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #711 from golemfactory/beta
Release beta to master
- Loading branch information
Showing
187 changed files
with
23,329 additions
and
3,089 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Cleanup test environment" | ||
description: "Cleanup test environment" | ||
inputs: | ||
type: | ||
description: "Type of test" | ||
required: true | ||
default: "test" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Collect logs from providers and requestor | ||
shell: bash | ||
if: always() | ||
run: | | ||
mkdir log-output | ||
docker compose -f tests/docker/docker-compose.yml logs provider-1 > log-output/${{inputs.type}}-provider-1.log | ||
docker compose -f tests/docker/docker-compose.yml logs provider-2 > log-output/${{inputs.type}}-provider-2.log | ||
docker compose -f tests/docker/docker-compose.yml logs requestor > log-output/${{inputs.type}}-requestor.log | ||
- name: Upload provider output and logs | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: ${{inputs.type}}-golem-provider-and-requestor-logs | ||
path: log-output | ||
|
||
- name: Cleanup Docker | ||
shell: bash | ||
if: always() | ||
run: | | ||
c=$(docker ps -q) | ||
[[ $c ]] && docker kill $c | ||
docker system prune -af |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Prepare providers and requestor" | ||
description: "Prepare providers and requestor" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Use random string for subnet | ||
shell: bash | ||
# Use a random string to avoid other providers on the same subnet which might cause tests to fail because it expects only providers named provider-1 and provider-2 | ||
run: echo "YAGNA_SUBNET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo '')" >> $GITHUB_ENV | ||
|
||
- name: Set up Versions | ||
shell: bash | ||
run: | | ||
echo "PROVIDER_VERSION=${PROVIDER_VERSION}" >> $GITHUB_ENV | ||
echo "REQUESTOR_VERSION=${REQUESTOR_VERSION}" >> $GITHUB_ENV | ||
echo "PROVIDER_WASI_VERSION=${PROVIDER_WASI_VERSION}" >> $GITHUB_ENV | ||
echo "PROVIDER_VM_VERSION=${PROVIDER_VM_VERSION}" >> $GITHUB_ENV | ||
- name: Build the docker containers | ||
shell: bash | ||
run: | | ||
docker compose -f tests/docker/docker-compose.yml build \ | ||
--build-arg UBUNTU_VERSION=22.04 \ | ||
--build-arg YA_CORE_PROVIDER_VERSION=${PROVIDER_VERSION} \ | ||
--build-arg YA_CORE_REQUESTOR_VERSION=${REQUESTOR_VERSION} \ | ||
--build-arg YA_WASI_VERSION=${PROVIDER_WASI_VERSION} \ | ||
--build-arg YA_VM_VERSION=${PROVIDER_VM_VERSION} | ||
- name: Start the docker containers | ||
shell: bash | ||
run: | | ||
sudo service docker restart | ||
docker compose -f tests/docker/docker-compose.yml down | ||
docker compose -f tests/docker/docker-compose.yml up -d | ||
- name: Fund the requestor | ||
shell: bash | ||
run: | | ||
sleep 10 | ||
docker exec -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh" | ||
- name: Install and build the SDK in the docker container | ||
shell: bash | ||
run: | | ||
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm i && npm run build && ./node_modules/.bin/cypress install && npm install --prefix examples && npm install ts-node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.