Skip to content

test

test #1252

Workflow file for this run

name: test
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
java: [8, 11, 17, 21]
scala: [2.13.x, 3.x]
runs-on: ubuntu-latest
if: ${{ github.event_name != 'schedule' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
- name: Test
run: sbt "setScalaVersion ${{matrix.scala}}" test core/headerCheck package
test-rc:
strategy:
fail-fast: false
matrix:
java: [8]
scala: [3.next]
runs-on: ubuntu-latest
if: "github.event_name == 'schedule' && github.repository == 'scala/scala-parallel-collections'
|| github.event_name == 'push'
|| (
github.event_name == 'pull_request'
&& contains(github.event.pull_request.body, '[test-rc]')
)"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
- name: Test
run: sbt "setScalaVersion ${{matrix.scala}}" test core/headerCheck package