chore: bump scala from 3.8.1 to 3.8.2 and bump sbt from `1.1…
#1170
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: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'tools/**' | |
| - 'docker/**.yml' | |
| - LICENSE | |
| - README.md | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| timeout-minutes: 360 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| java: [25] | |
| scala: [3.8.2] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1 | |
| - name: Set up JDK | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #5.1.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Compile | |
| working-directory: . | |
| run: sbt compile | |
| - name: Caching | |
| uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 #7.0.0 | |
| - name: Create log file | |
| working-directory: . | |
| # Workaround for suddenly happen permission denied | |
| run: mkdir logs && touch ./logs/test.log | |
| - name: Run tests | |
| working-directory: . | |
| run: cp .env.example .env && sbt clean coverage testWithDb | |
| - name: Send Coverage Report | |
| working-directory: . | |
| run: cp .env.example .env && sbt coverageReport coveralls | |
| env: | |
| # NOTE: send coverage report failed caused by `Couldn't find a repository matching this job.` | |
| # COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} | |
| assemble: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| timeout-minutes: 360 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| java: [25] | |
| scala: [3.8.2] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1 | |
| - name: Set up JDK | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #5.1.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Assemble | |
| working-directory: . | |
| run: sbt assembly |