From 232028080760923842c22408577a36e022e32637 Mon Sep 17 00:00:00 2001 From: fmacleal Date: Mon, 10 Jun 2024 21:30:47 +0200 Subject: [PATCH] Initial version from github actions workflow --- .github/workflows/build_and_test.yml | 59 +++++++++++++++++++++++++++ .idea/.gitignore | 3 ++ .idea/misc.xml | 6 +++ .idea/modules.xml | 8 ++++ .idea/rootstock-integration-tests.iml | 9 ++++ .idea/vcs.xml | 6 +++ 6 files changed, 91 insertions(+) create mode 100644 .github/workflows/build_and_test.yml create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/rootstock-integration-tests.iml create mode 100644 .idea/vcs.xml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 00000000..d66f2690 --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -0,0 +1,59 @@ +name: Build and Test + +on: + push: + branches: + - '**' + +jobs: + building-rskj-and-powpeg-node: + runs-on: ubuntu-latest + container: + image: openjdk:8-jdk + steps: + - uses: actions/checkout@v4 + - name: Setup System Tools + run: | + apt update -y + apt install -y gnupg2 curl + + - name: Checkout code + uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + - name: Pull rskj + with: + repository: rsksmart/rskj + path: './rskj' + run: | + cd rskj + ls -la +# ./configure.sh && chmod +x gradlew +# ./gradlew --no-daemon clean build -x test + + - uses: actions/checkout@v4 + - name: Pull powpeg-node + with: + repository: rsksmart/powpeg-node + path: './powpeg-node' + run: | + cd powpeg-node + ls -la +# ./configure.sh && chmod +x gradlew +# ./gradlew --no-daemon clean build + + - uses: actions/cache@v4 + name: Cache Gradle + id: cache-gradle + with: + path: | + .gradle/caches + gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Get gradle wrapper and build dependencies + run: | + ./configure.sh + ./gradlew --no-daemon dependencies \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..26d33521 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..07115cdf --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..5a5f26f1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/rootstock-integration-tests.iml b/.idea/rootstock-integration-tests.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/.idea/rootstock-integration-tests.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file