AGENTS.mdにブランチ運用追加 #938
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: Main Upkeep | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest ] | |
| java-version: [ '21' ] | |
| name: build Java ${{ matrix.java-version }} (${{ matrix.os }}) | |
| env: | |
| GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java-version }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Set UTF-8 encoding for Windows | |
| if: runner.os == 'Windows' | |
| run: chcp.com 65001 | |
| - name: Run Build | |
| run: | | |
| ./gradlew build --continue | |
| - name: Upload test failure report | |
| uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: test-failure-reports-${{ matrix.java-version }}-${{ runner.os }} | |
| path: build/reports/tests/ | |
| retention-days: 3 |