Skip to content

Merge pull request #251 from scalameta/update/sconfig-1.8.1 #445

Merge pull request #251 from scalameta/update/sconfig-1.8.1

Merge pull request #251 from scalameta/update/sconfig-1.8.1 #445

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: ${{ matrix.os }} jdk-${{ matrix.java }} tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2019]
java: [8, 11]
exclude:
- os: windows-2019
java: 8
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
# We need to set proper Pagefile limits in advance.
# Github actions default page file size is quite small,
# it's not enough to run all tests, especially when using None GC.
# We've observed that on Unix memory management is less strict,
# you can reserve more memory than it's physically possible.
# On Windows however you need to reserve/commit memory in advance -
# it does not matter whether it would be used or not, the amount of all
# reserved memory cannot exceed the amount of physically available storage.
- name: Configure Pagefile
if: matrix.os == 'windows-2019'
uses: al-cheb/[email protected]
with:
minimum-size: 4GB
maximum-size: 16GB
- name: Test
run: sbt +test
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- run: ./bin/scalafmt --check
- run: sbt scalafixCheckAll
- run: sbt coreJVM/mimaReportBinaryIssues
- run: sbt docs/docusaurusCreateSite