diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2cb4c8a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: + pull_request: + push: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + cache: 'sbt'' + - name: Build and Test + run: sbt +clean scalafmt::test test:scalafmt::test sbt:scalafmt::test coverage +compile +test:compile +test coverageReport && sbt coverageAggregate + - name: Upload code coverage + run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 4ed0923..5331a90 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # http://jsonapi.org/ implementation in scala -[![Build Status](https://travis-ci.org/qvantel/jsonapi-scala.svg?branch=master)](https://travis-ci.org/qvantel/jsonapi-scala) +![CI](https://github.com/qvantel/jsonapi-scala/actions/workflows/ci.yml/badge.svg) [![codecov](https://codecov.io/gh/qvantel/jsonapi-scala/branch/master/graph/badge.svg)](https://codecov.io/gh/qvantel/jsonapi-scala) -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.qvantel/jsonapi-scala-core_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.qvantel/jsonapi-scala-core_2.11) +[![Maven Central (2.12 and 2.13)](https://maven-badges.herokuapp.com/maven-central/com.qvantel/jsonapi-scala-core_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.qvantel/jsonapi-scala-core_2.13) ## Features * Automatic generation of jsonapi json writers with relationship handling for case classes @@ -108,4 +108,4 @@ implicit val endpoint: ApiEndpoint = ApiEndpoint.Static("http://localhost:8080/a implicit val client: Client[IO] = Http1Client[IO]().unsafeRunSync() val jac = JsonApiClient.instance -``` \ No newline at end of file +```