add gauge accepence tests.
@@ -93,3 +93,56 @@ jobs:
unzip /tmp/vault_1.2.2_linux_amd64.zip
export PATH=$PATH:$PWD && popd
mvn verify -pl tests/acceptance-test -P vault-acceptance-tests,reduce-logging -o
+
+ atest:
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - run: |
+ export TESSERA_VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
+ export TESSERA_JAR=~/.m2/repository/com/jpmorgan/quorum/tessera-app/$TESSERA_VERSION/tessera-app-$TESSERA_VERSION-app.jar
+ cd
+ echo "Install geth"
+ curl -L https://dl.bintray.com/quorumengineering/quorum/v2.3.0/geth_v2.3.0_linux_amd64.tar.gz -o geth.tar.gz
+ tar xvzf geth.tar.gz
+ sudo mv geth /usr/local/bin/
+ geth version
+ echo "Installed geth"
+ echo "Install solc"
+ curl -L https://github.com/ethereum/solidity/releases/download/v0.5.4/solc-static-linux -o solc
+ sudo mv solc /usr/local/bin/
+ sudo chmod 755 /usr/local/bin/solc
+ solc --version
+ echo "Installed solc"
+ echo "Install gauge"
+ curl -L https://github.com/getgauge/gauge/releases/download/v1.0.4/gauge-1.0.4-linux.x86_64.zip -o gauge.zip
+ sudo unzip -o gauge.zip -d /usr/local/bin
+ gauge telemetry off
+ gauge install
+ echo "Installed gauge"
+ git clone https://github.com/jpmorganchase/quorum-examples.git
+ git clone https://github.com/jpmorganchase/quorum-acceptance-tests.git
+ echo "Start $TESSERA_JAR for 7 nodes"
+ cd quorum-examples/examples/7nodes
+ ./tessera-init.sh
+ ./init.sh istanbul
+ ./start.sh istanbul tessera
+ cd ../../../
+ echo "Started $TESSERA_JAR for 7 nodes"
+ echo "Run quorum-acceptance-tests"
+ cd quorum-acceptance-tests
+ cp config/application-local.7nodes.yml config/application-local.yml
+ mvn test
+ echo "Complete quorum-acceptance-tests"
+ env:
+ MAVEN_OPTS: -Xms1024m -Xmx2048m
\ No newline at end of file
