Bug fixes: incorrect keep directive, race condition, and improve logging
#200
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| java: 8 | |
| jobtype: 1 | |
| - os: windows-latest | |
| java: 8 | |
| jobtype: 2 | |
| - os: ubuntu-latest | |
| java: 11 | |
| jobtype: 1 | |
| - os: ubuntu-latest | |
| java: 11 | |
| jobtype: 3 | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| # define Java options for both official sbt and sbt-extras | |
| JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "${{ matrix.java }}" | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Build and test (1) | |
| if: ${{ matrix.jobtype == 1 }} | |
| shell: bash | |
| run: | | |
| sbt -v -Dfile.encoding=UTF8 "jarjar/publishLocal" "+test" "publishLocal;scripted" | |
| - name: Build and test (2) | |
| if: ${{ matrix.jobtype == 2 }} | |
| shell: bash | |
| run: | | |
| sbt -v -Dfile.encoding=UTF8 "jarjar/publishLocal" "+test" "publishLocal;scripted" | |
| - name: Build and test (3) | |
| if: ${{ matrix.jobtype == 3 }} | |
| shell: bash | |
| run: | | |
| find **/src/main/contraband-scala -name "*.scala" -delete | |
| sbt -v -Dfile.encoding=UTF8 generateContrabands scalafmtSbtCheck scalafmtCheckAll | |
| git diff --exit-code # check contrabands | |
| ea-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| # define Java options for both official sbt and sbt-extras | |
| JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: temurin | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Build and test | |
| shell: bash | |
| run: | | |
| sbt -v -Dfile.encoding=UTF8 "jarjar/publishLocal" "+test" "publishLocal;scripted" |