Skip to content

Commit

Permalink
Consistenly version
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 4, 2024
1 parent 2875990 commit cd85002
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
lint:
name: 🔎 Lint Code
runs-on: ubuntu-latest
env: { PGVERSION: 16 }
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,16 +22,16 @@ jobs:
uses: Swatinem/rust-cache@v2
with: { cache-directories: /home/runner/.pgrx }
- name: Install Postgres
run: sudo ./.ci/apt-install-postgres 16
run: sudo ./.ci/apt-install-postgres ${{ env.PGVERSION }}
- name: Install pgrx
run: cargo install cargo-pgrx --locked --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)"
- name: Initialize pgrx
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#postgresql
run: cargo pgrx init --pg16="$(which pg_config)"
run: cargo pgrx init --pg${{ env.PGVERSION }}="$(which pg_config)"
- name: Cargo format
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --features pg14 --no-default-features
run: cargo clippy --features pg${{ env.PGVERSION }} --no-default-features

test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cd85002

Please sign in to comment.