style:use static method & remove redundant code #33
Workflow file for this run
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
name: Test Java SDK library | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- develop | |
jobs: | |
test: | |
name: Test java project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Run local-setup | |
run: | | |
git clone https://github.com/matter-labs/local-setup.git | |
pushd local-setup | |
docker-compose up -d | |
popd | |
- name: Wait until server is up | |
run: | | |
while ! curl -s -X POST -d '{"jsonrpc":"2.0","method":"net_version","id":1}' -H 'Content-Type: application/json' 0.0.0.0:3050; do sleep 1; done | |
- name: Test with Gradle | |
run: gradle clean test |