Skip to content

Update cats-effect to 3.5.5 (#1737) #2869

Update cats-effect to 3.5.5 (#1737)

Update cats-effect to 3.5.5 (#1737) #2869

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jdk: [adopt@1.11]
scala: ['2.12', '2.13', '3']
include:
- scala: '2.12'
scala-version: 2.12.20
- scala: '2.13'
scala-version: 2.13.15
- scala: '3'
scala-version: 3.3.3
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Scala
uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.jdk }}
- name: Check formatting
run: sbt "++${{ matrix.scala-version }} scalafmtCheckAll" scalafmtSbtCheck
- name: Run linter
run: sbt "++${{ matrix.scala-version }} scalafixCheckAll"
- name: Compile
run: sbt "++${{ matrix.scala-version }} compile"
- name: Run tests
run: sbt coverage "++${{ matrix.scala-version }} test"
- name: Upload coverage data to Coveralls
run: sbt ++${{ matrix.scala-version }} coverageAggregate coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
- name: Build Scaladoc
run: sbt "++${{ matrix.scala-version }} doc"
- name: Publish artifact locally
run: sbt "++${{ matrix.scala-version }} publishLocal"
- name: Compile example project
if: startsWith(matrix.scala, '2')
run: cd example && sbt "++${{ matrix.scala-version }} test"
- name: Check mdoc output
if: matrix.scala == '2.12'
run: >
sbt ++${{ matrix.scala-version }} mdoc &&
git diff --exit-code
build_website:
name: Build Website
runs-on: ubuntu-latest
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Scala
uses: olafurpg/setup-scala@v14
with:
java-version: adopt@1.11
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install dependencies
run: >
sudo apt install libxslt-dev &&
gem install jekyll:4.3.2 html-proofer:5.0.7
- name: Build website
run: sbt makeMicrosite
- name: Verify website
run: >
htmlproofer
--no-check-external-hash
--swap-urls "https\://github\.com/pureconfig/pureconfig/tree/master:file\://$(pwd)"
--ignore-urls "/search.maven.org/"
docs/target/site
diff_website:
name: Diff Website
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.base_ref == 'master'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Scala
uses: olafurpg/setup-scala@v14
with:
java-version: adopt@1.11
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install dependencies
run: gem install jekyll:4.3.2
- name: Build and compare website
id: diff_website
run: ./scripts/diff_website.sh
continue-on-error: true
- name: Comment on pull request
if: steps.diff_website.outcome == 'failure'
uses: thollander/actions-comment-pull-request@v1.0.4
with:
message: >
Warning: the content of the PureConfig website changed with this pull request. This may
be intentional (as is the case when sbt-microsites is updated or some breaking change
occurs) or may be an unexpected change in the library's behavior. Please check the logs
of the [Diff Website job](https://github.com/pureconfig/pureconfig/actions/runs/${{ github.run_id }})
("Build and compare website" step) in GitHub Actions to see the differences.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}