Known peers rotation #3205
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: Check PR | |
on: | |
pull_request: | |
jobs: | |
check-pr: | |
name: Check PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'sbt' | |
gpg-private-key: ${{ secrets.OSSRH_GPG_KEY }} | |
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | |
- name: Check PR | |
run: sbt --mem 6144 --batch ";checkPR;completeQaseRun" | |
env: | |
QASE_ENABLE: true | |
QASE_RUN_NAME: checkPR | |
QASE_RUN_ID: 1 | |
QASE_PROJECT_CODE: PR | |
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }} | |
CHECKPR_RUN_ID: ${{ github.run_id }} | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
lang: | |
- 'lang/**' | |
- 'build.sbt' | |
- 'project/*' | |
- name: Compile external sources | |
if: steps.filter.outputs.lang == 'true' | |
run: | | |
sbt lang/assembly | |
git clone https://github.com/waves-exchange/neutrino-contract | |
git clone https://github.com/waves-exchange/contracts | |
git clone https://github.com/waves-ducks-core/wavesducks-public | |
git clone https://oauth2:${{ secrets.SWOPFI_GITLAB_TOKEN }}@gitlabwp.wvservices.com/swopfi/swopfi-smart-contracts | |
find neutrino-contract/script -name "*.ride" -type f -exec java -jar lang/jvm/target/file-compiler.jar {} +; | |
find contracts/ride -name "*.ride" -type f -exec java -jar lang/jvm/target/file-compiler.jar {} +; | |
find wavesducks-public/ride -name "*.ride" -type f -exec java -jar lang/jvm/target/file-compiler.jar {} +; | |
find swopfi-smart-contracts/dApps -name "*.ride" -type f -exec java -jar lang/jvm/target/file-compiler.jar {} +; | |
- name: Clean cache | |
run: find ~/.cache/coursier -type d -name '*SNAPSHOT' | xargs rm -vrf {} \; | |
- name: Publish snapshots | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'publish-snapshots') }} | |
env: | |
SONATYPE_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
PGP_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | |
run: | | |
sbt_version=$(cut -d\" -f2 version.sbt) | |
pr_number=${{ github.event.number }} | |
sbt -Dproject.version=$sbt_version-$pr_number-SNAPSHOT --mem 4096 --batch publishSigned |