This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Merge pull request #202 from shazam/fixes-threading-issue #57
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: Release Fork | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Run tests | |
run: ./build-scripts/run_tests.sh | |
- name: Deploy Snapshot | |
run: ./build-scripts/deploy_snapshot.sh | |
env: | |
GITHUB_IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} | |
ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
ORG_GRADLE_PROJECT_IS_CI: true | |
- name: Run coverage | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: ./build-scripts/coverage.sh |