onClose コールバックで WS 切断時の code と reason を取得できるようにする #2069
Workflow file for this run
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: Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths-ignore: | |
| - 'README.md' | |
| - 'CHANGES.md' | |
| - 'LICENSE' | |
| - 'THANKS' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| # java-version を 17 にしている理由は以下です | |
| # - Android Gradle plugin 8.5 のデフォルト JDK version が 17 | |
| # - 17 は LTS であり、temurin では 2027年10月までサポート予定 | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Copy gradle.properties | |
| run: cp gradle.properties.example gradle.properties | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Lint Check | |
| run: ./gradlew ktlintCheck | |
| - name: Slack Notification | |
| if: success() | |
| uses: rtCamp/action-slack-notify@v2 | |
| env: | |
| SLACK_CHANNEL: sora-android-sdk | |
| SLACK_COLOR: good | |
| SLACK_TITLE: SUCCEEDED | |
| SLACK_ICON_EMOJI: ":star-struck:" | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| - name: Slack Notification | |
| if: failure() | |
| uses: rtCamp/action-slack-notify@v2 | |
| env: | |
| SLACK_CHANNEL: sora-android-sdk | |
| SLACK_COLOR: danger | |
| SLACK_TITLE: "FAILED" | |
| SLACK_ICON_EMOJI: ":japanese_ogre:" | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |