Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update version #11

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 0 additions & 178 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Git checkout (merge)
uses: actions/checkout@v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0

- name: Git checkout (PR)
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
# see: https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 18
cache: sbt
- name: Run tests
run: sbt clean coverage test

- name: Upload coverage data to Coveralls
run: sbt coverageReport coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches: [main,develop]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 18
cache: sbt
- run: |
export PROG_VERSION=${GITHUB_REF_NAME} && [[ ${GITHUB_REF_TYPE} = "branch" ]] && export PROG_VERSION=${GITHUB_REF_NAME}"-SNAPSHOT"
echo "PROG_VERSION=$PROG_VERSION GITHUB_REF_TYPE=${GITHUB_REF_TYPE} GITHUB_REF_NAME=${GITHUB_REF_NAME}"
sbt ci-release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# facade-scalajs-comunica-query-sparql
[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-1.13.0.svg)](https://www.scala-js.org)
[![p2m2](https://circleci.com/gh/p2m2/facade-scalajs-comunica-query-sparql.svg?style=shield)](https://app.circleci.com/pipelines/github/p2m2)
[![codecov](https://codecov.io/gh/p2m2/facade-scalajs-comunica-query-sparql/branch/main/graph/badge.svg?token=GowU3tYOri)](https://codecov.io/gh/p2m2/facade-scalajs-comunica-query-sparql)
Scala.js Facade of the [Comunica SPARQL query engine for JavaScript for querying over decentralized RDF knowledge graphs on the Web](hhttps://www.npmjs.com/package/@comunica/query-sparql)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.p2m2/comunica-query-sparql_sjs1_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.p2m2/comunica-query-sparql_sjs1_2.13) <!-- https://github.com/jirutka/maven-badges -->
[![Coverage Status](https://coveralls.io/repos/github/p2m2/facade-scalajs-comunica-query-sparql/badge.svg)](https://coveralls.io/github/p2m2/facade-scalajs-comunica-query-sparql)
![CI](https://github.com/p2m2/facade-scalajs-comunica-query-sparql/actions/workflows/ci.yml/badge.svg)
![Release](https://github.com/p2m2/facade-scalajs-comunica-query-sparql/actions/workflows/release.yml/badge.svg)

Scala.js Facade of the [Comunica SPARQL query engine](https://comunica.dev/) for JavaScript for querying over decentralized RDF knowledge graphs on the Web

## Install

```
libraryDependencies += "com.github.p2m2" %%% "facade-scalajs-comunica-query-sparql" % "2.6.6",
libraryDependencies += "com.github.p2m2" %%% "facade-scalajs-comunica-query-sparql" % "2.10.2",
```


Expand Down
15 changes: 8 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import sbt.Keys.{testFrameworks, version}

lazy val comunica_version = "2.6.6"
lazy val comunica_version = "2.10.2"

def getPackageSetting = Seq(
name := "comunica-query-sparql",
version := scala.util.Properties.envOrElse("PROG_VERSION", comunica_version),
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
versionScheme := Some("early-semver"),
organization := "com.github.p2m2",
organizationName := "p2m2",
organizationHomepage := Some(url("https://www6.inrae.fr/p2m2")),
Expand Down Expand Up @@ -46,6 +47,7 @@ def getPackageSetting = Seq(
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
publishTo := sonatypePublishToBundle.value,
)

lazy val root = project.in(file(".")).
Expand Down Expand Up @@ -73,11 +75,10 @@ lazy val root = project.in(file(".")).
"@comunica/query-sparql" -> comunica_version,
),
libraryDependencies ++= Seq(
("org.scala-js" %%% "scalajs-java-securerandom" % "1.0.0").cross(CrossVersion.for3Use2_13),
"org.scala-js" %%% "scala-js-macrotask-executor" % "1.0.0",
"net.exoego" %%% "scala-js-nodejs-v14" % "0.14.0",
"com.github.p2m2" %%% "n3js" % "1.13.0",
"com.lihaoyi" %%% "utest" % "0.7.11" % "test"
("org.scala-js" %%% "scalajs-java-securerandom" % "1.0.0").cross(CrossVersion.for3Use2_13) % "test",
"org.scala-js" %%% "scala-js-macrotask-executor" % "1.0.0" % "test",
"com.github.p2m2" %%% "n3js" % "v1.17.2",
"com.lihaoyi" %%% "utest" % "0.8.2" % "test"
) ,
testFrameworks += new TestFramework("utest.runner.Framework"),
coverageMinimumStmtTotal := 20,
Expand Down
7 changes: 4 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
addSbtPlugin("org.jetbrains" % "sbt-ide-settings" % "1.1.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.15.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.7")
addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.2.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.10")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.11")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")