マージせずテストだけ行うactionに変更 #713
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: メインラインのビルド | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest ] | |
| java-version: [ '17' ] | |
| name: build Java ${{ matrix.java-version }} (${{ matrix.os }}) | |
| env: | |
| GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java-version }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - 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@v4 | |
| if: failure() | |
| with: | |
| name: test-failure-reports-${{ matrix.java-version }}-${{ runner.os }} | |
| path: build/reports/tests/ | |
| retention-days: 3 |