Skip to content

Update sbt-scala-native to 0.5.4 #1045

Update sbt-scala-native to 0.5.4

Update sbt-scala-native to 0.5.4 #1045

Workflow file for this run

name: CI
on:
pull_request:
push:
schedule:
- cron: '0 6 * * 3'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 50
strategy:
fail-fast: false
matrix:
name: [jvm, js, native]
scala: ["2.12.*", "2.13.*", "3.*"]
java: [8]
include:
- name: jvm
scala: "2.13.*"
java: 21
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: ${{matrix.java}}
distribution: temurin
- uses: coursier/cache-action@142d2738bd29f0eb9d44610828acb3a19809feab # v6.4.6
- run: git config core.whitespace tab-in-indent,trailing-space,space-before-tab,cr-at-eol
- run: git show --oneline --check
- shell: bash
name: install sbt
run: curl -Ls https://raw.githubusercontent.com/dwijnand/sbt-extras/787e7a6c0523cbd995708aec2815a21917315079/sbt > ./sbt && chmod 0755 ./sbt
- run: |
case ${{ matrix.name }} in
"jvm")
./sbt -v \
-jvm-opts .github/workflows/.jvmopts \
"++ ${{ matrix.scala }}" \
scalafmtCheckAll \
scalafmtSbtCheck \
checkGenerateCodeError \
"rootJVM/Test/compile" \
"scalapropsTestNames" \
"scalapropsJVM/test" \
"scalazJVM/test" \
"rootJVM/publishLocal" \
;;
"js")
./sbt -v \
-jvm-opts .github/workflows/.jvmopts \
"++ ${{ matrix.scala }}" \
"rootJS/Test/compile" \
"scalapropsJS/test" \
"scalazJS/test" \
"rootJS/publishLocal"
;;
"native")
./sbt -v \
-jvm-opts .github/workflows/.jvmopts \
"++ ${{ matrix.scala }}" \
"scalapropsNative/test" \
"scalazNative/test" \
"rootNative/publishLocal"
;;
*)
echo "unknown job-name"
exit 1
esac
- uses: mikepenz/action-junit-report@ac30be7acb0a361e5492575ab42e47fcadec4928 # v4.2.2
if: ${{ always() && matrix.name == 'jvm' }}
with:
report_paths: '**/target/test-reports/*.xml'
require_tests: true
check_name: "${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.name }}"
- uses: test-summary/action@032c8a9cec6aaa3c20228112cae6ca10a3b29336
if: ${{ always() && matrix.name == 'jvm' }}
with:
paths: '**/target/test-reports/*.xml'
- run: rm -rf "$HOME/.ivy2/local"