-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a57287
commit d0ea6a5
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,24 @@ jobs: | |
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
scala: [2.12.19, 2.13.13, 3.3.3] | ||
java: [temurin@8, temurin@11, temurin@17, temurin@21] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Ignore line ending differences in git | ||
if: contains(runner.os, 'windows') | ||
shell: bash | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Configure pagefile for Windows | ||
if: contains(runner.os, 'windows') | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 2GB | ||
maximum-size: 8GB | ||
disk-root: 'C:' | ||
|
||
- name: Checkout current branch (full) | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -65,21 +78,26 @@ jobs: | |
cache: sbt | ||
|
||
- name: Check that workflows are up to date | ||
shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck | ||
|
||
- name: Report binary compatibility issues | ||
shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues | ||
|
||
- name: Build project | ||
shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' clean coverage test | ||
|
||
- name: Upload coverage data to Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} | ||
shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' coverageReport coverageAggregate coveralls | ||
|
||
- name: Compress target directories | ||
shell: bash | ||
run: tar cf targets.tar target support/stream-circe/target http-json/target tests/target stream-json/target support/http-circe/target project/target | ||
|
||
- name: Upload target directories | ||
|
@@ -99,6 +117,18 @@ jobs: | |
java: [temurin@8] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Ignore line ending differences in git | ||
if: contains(runner.os, 'windows') | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Configure pagefile for Windows | ||
if: contains(runner.os, 'windows') | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 2GB | ||
maximum-size: 8GB | ||
disk-root: 'C:' | ||
|
||
- name: Checkout current branch (full) | ||
uses: actions/checkout@v4 | ||
with: | ||
|
This file contains 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