fix: release conflicts (#765) #11
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 contracts | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- 'contracts/javascore/**' | |
push: | |
branches: | |
- main | |
paths: | |
- 'contracts/javascore/**' | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Run unit tests | |
run: cd contracts/javascore && ./gradlew clean build && ./gradlew optimizedJar | |
integration-test: | |
needs: unit-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Start local Blockchain | |
run: docker logout public.ecr.aws && cd contracts/javascore/gochain-btp && make run | |
- name: Check if all contracts are deployable | |
run: cd contracts/javascore && ./gradlew clean build && ./gradlew optimizedJar && ./gradlew deployToLocal -PdeploymentENV=local | |
- name: Run integration tests | |
run: cd contracts/javascore && ./gradlew integrationTest |