Skip to content

Commit

Permalink
Publish coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 5, 2024
1 parent dcb39d5 commit 7797210
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ci/apt-install-postgres
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PGVERSION=${1:-}
apt-get update
apt-get install -y --no-install-recommends \
build-essential clang llvm llvm-dev llvm-runtime cmake \
ca-certificates gnupg2 curl libicu-dev libxml2 locales ssl-cert
ca-certificates gnupg2 curl libicu-dev libxml2 locales ssl-cert xmllint
apt-get -y purge postgresql-client-common

curl https://salsa.debian.org/postgresql/postgresql-common/-/raw/master/pgdg/apt.postgresql.org.sh -O --output-dir /usr/local/bin/
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --features pg${{ env.PGVERSION }} --no-default-features
- name: Cover
- name: Generate Coverage
env: { RUST_BACKTRACE: 1, PGUSER: postgres }
run: make cover
- name: Publish Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: tembo-io/pg-jsonschema
files: target/cover/cobertura.xml

test:
runs-on: ubuntu-latest
Expand All @@ -52,7 +59,5 @@ jobs:
- name: Initialize pgrx
run: cargo pgrx init --pg${{ matrix.pg }}="$(which pg_config)"
- name: Run the tests
env:
RUST_BACKTRACE: 1
PGUSER: postgres
env: { RUST_BACKTRACE: 1, PGUSER: postgres }
run: cargo test --all --no-default-features --features "pg${{ matrix.pg }} pg_test" -- --nocapture
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
JSON Schema Postgres Extension
==============================

[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![PGXN version](https://badge.fury.io/pg/jsonschema.svg)](https://badge.fury.io/pg/jsonschema)
[![🧪 Lint and Test](https://github.com/tembo-io/pg-jsonschema/actions/workflows/lint-and-test.yml/badge.svg)](https://github.com/tembo-io/pg-jsonschema/actions/workflows/lint-and-test.yml)
[![Code Coverage](https://codecov.io/gh/tembo-io/pg-jsonschema/graph/badge.svg?token=DIFED324ZY)](https://codecov.io/gh/tembo-io/pg-jsonschema)

This library provides the `jsonschema` extension for validating JSON and JSONB
against a [JSON Schema] in Postgres. It supports the following [specification
Expand Down

0 comments on commit 7797210

Please sign in to comment.