Skip to content

Commit

Permalink
build - add PEEPS tests (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer authored Feb 21, 2022
1 parent e23febd commit 0b6c76f
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 132 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,43 @@ jobs:
run: |
docker images
docker ps -a
peeps-tests:
name: Run PEEPS tests
needs:
- docker-build
runs-on: ubuntu-18.04
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Download workflow artifact - Docker image'
uses: actions/download-artifact@v1
with:
name: docker-image
- name: 'Load Docker image'
id: setup
run: |
tar xfvz docker-image/quorum-pr.tar.gz
docker load --input quorum-pr.tar
docker image tag quorumengineering/quorum:pr quorumengineering/quorum:develop
docker image ls
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
check-latest: true
- name: PEEPS
run: |
cd build
./run-peeps.sh
- name: PEEPS Test Report
uses: mikepenz/action-junit-report@v2
if: always()
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: PEEPS test report


publish-docker:
name: Publish Docker Image
needs:
Expand Down Expand Up @@ -453,6 +490,7 @@ jobs:
curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} -H "Content-type: application/json" --data "@${1}"
}
_post "long_message.json" || _post "short_message.json"
build-sentinel:
if: always()
needs:
Expand Down
38 changes: 37 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,46 @@ jobs:
tar cfvz $output_dir/quorum-pr.tar.gz quorum-pr.tar
echo "::set-output name=output_dir::$output_dir"
- name: 'Upload workflow artifact - Docker image'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: docker-image
path: ${{ steps.build.outputs.output_dir }}
peeps-tests:
name: Run PEEPS tests
needs:
- docker-build
runs-on: ubuntu-18.04
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Download workflow artifact - Docker image'
uses: actions/download-artifact@v1
with:
name: docker-image
- name: 'Load Docker image'
id: setup
run: |
tar xfvz docker-image/quorum-pr.tar.gz
docker load --input quorum-pr.tar
docker image tag quorumengineering/quorum:pr quorumengineering/quorum:develop
docker image ls
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
check-latest: true
- name: PEEPS
run: |
cd build
./run-peeps.sh
- name: PEEPS Test Report
uses: mikepenz/action-junit-report@v2
if: always()
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: PEEPS test report

acceptance-tests:
name: Acceptance tests (${{ matrix.tag }})
needs:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ profile.cov
**/yarn-error.log

# QUORUM
generated-release-notes.md
generated-release-notes.md

build/PEEPS
7 changes: 0 additions & 7 deletions build/install-constellation-linux.sh

This file was deleted.

15 changes: 0 additions & 15 deletions build/install-constellation-mac.sh

This file was deleted.

13 changes: 13 additions & 0 deletions build/run-peeps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

if ! git clone https://github.com/ConsenSys/PEEPS.git
then
cd PEEPS
git reset --hard HEAD
git pull origin master
else
cd PEEPS
fi

./gradlew --no-daemon --parallel endToEndTest

42 changes: 0 additions & 42 deletions build/travis-install-linux.sh

This file was deleted.

20 changes: 0 additions & 20 deletions build/travis-run-acceptance-tests-linux.sh

This file was deleted.

46 changes: 0 additions & 46 deletions build/travis_keepalive.sh

This file was deleted.

0 comments on commit 0b6c76f

Please sign in to comment.