Skip to content

Commit

Permalink
Add CI & update README badges
Browse files Browse the repository at this point in the history
  • Loading branch information
ane committed Feb 9, 2024
1 parent 9bb9cc2 commit 4835a15
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
```
```

0 comments on commit 4835a15

Please sign in to comment.