Merge pull request #26 from team-gogo/hotfix/batch-item-writer #9
This file contains hidden or 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: GOGO Betting prod CI Workflow | |
| on: | |
| pull_request: | |
| branches: | |
| - 'master' | |
| push: | |
| branches: | |
| - 'master' | |
| workflow_dispatch: | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v2 | |
| - name: Setup Gradle's permission | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew clean build | |
| - name: CI Success Notification | |
| uses: sarisia/actions-status-discord@v1 | |
| if: success() | |
| with: | |
| webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
| color: 0x4CAF50 | |
| - name: CI Failure Notification | |
| uses: sarisia/actions-status-discord@v1 | |
| if: failure() | |
| with: | |
| webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
| color: 0xFF4C4C |