Fix paths in error messages #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π§ͺ Lint and Test | |
on: | |
push: | |
branches-ignore: [wip/**] | |
jobs: | |
lint: | |
name: π Lint and Cover | |
runs-on: ubuntu-latest | |
env: { PGVERSION: 16 } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: { components: "rustfmt, clippy" } | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Postgres | |
run: sudo ./.ci/apt-install-postgres ${{ env.PGVERSION }} | |
- name: Install pgrx | |
run: make install-pgrx | |
- name: Initialize pgrx | |
run: make pgrx-init | |
- name: Format and Lint | |
run: make lint | |
- name: Generate Coverage | |
run: make cover RUST_BACKTRACE=1 PGUSER=postgres | |
- name: Publish Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: tembo-io/pg-jsonschema | |
files: target/cover/cobertura.xml | |
- name: Remove Data Diretory | |
run: rm -rf target/pgrx-test-data-${{ env.PGVERSION }} | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pg: [11, 12, 13, 14, 15, 16] | |
os: [[π§, Ubuntu]] # [π, macOS], [πͺ, Windows]] | |
name: π Postgres ${{ matrix.pg }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Postgres ${{ matrix.pg }} | |
run: sudo ./.ci/apt-install-postgres ${{ matrix.pg }} | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install pgrx | |
run: make install-pgrx | |
- name: Remove Data Diretory | |
run: rm -rf target/pgrx-test-data-${{ matrix.pg }} | |
- name: Initialize pgrx | |
run: make pgrx-init | |
- name: Run the tests | |
run: make test RUST_BACKTRACE=1 PGUSER=postgres | |
- name: Install | |
run: make install || cat target/installcheck/regression.diffs && exit 1 | |
- name: Run Install Check | |
run: make installcheck PGUSER=postgres PGPORT=5433 | |
- name: Remove Data Diretory | |
run: rm -rf target/pgrx-test-data-${{ matrix.pg }} |