|
5 | 5 | branches:
|
6 | 6 | - main
|
7 | 7 | - master
|
| 8 | + - pg-dump-version |
8 | 9 |
|
9 | 10 | pull_request:
|
10 | 11 |
|
|
20 | 21 | GRCOV_VERSION: 0.8.19
|
21 | 22 | # renovate: datasource=npm depName=pnpm
|
22 | 23 | PNPM_VERSION: 9.0.6
|
| 24 | + POSTGRES_VERSION: 13 |
23 | 25 |
|
24 | 26 | jobs:
|
25 | 27 | changed-files:
|
@@ -110,29 +112,33 @@ jobs:
|
110 | 112 |
|
111 | 113 | env:
|
112 | 114 | RUST_BACKTRACE: 1
|
113 |
| - TEST_DATABASE_URL: postgres://postgres:postgres@localhost/postgres |
| 115 | + TEST_DATABASE_URL: postgres://postgres@localhost/postgres |
114 | 116 | RUSTFLAGS: "-D warnings -Cinstrument-coverage"
|
115 | 117 | MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
|
116 | 118 |
|
117 |
| - services: |
118 |
| - postgres: |
119 |
| - image: postgres:13@sha256:eee22204934b36935237e7c92355e3178cfdf3c5377dec9c19c848115cc4637b |
120 |
| - env: |
121 |
| - POSTGRES_PASSWORD: postgres |
122 |
| - # Set health checks to wait until postgres has started |
123 |
| - options: >- |
124 |
| - --health-cmd pg_isready |
125 |
| - --health-interval 10s |
126 |
| - --health-timeout 5s |
127 |
| - --health-retries 5 |
128 |
| - ports: |
129 |
| - - 5432:5432 |
| 119 | +# services: |
| 120 | +# postgres: |
| 121 | +# image: postgres:13@sha256:eee22204934b36935237e7c92355e3178cfdf3c5377dec9c19c848115cc4637b |
| 122 | +# env: |
| 123 | +# POSTGRES_PASSWORD: postgres |
| 124 | +# # Set health checks to wait until postgres has started |
| 125 | +# options: >- |
| 126 | +# --health-cmd pg_isready |
| 127 | +# --health-interval 10s |
| 128 | +# --health-timeout 5s |
| 129 | +# --health-retries 5 |
| 130 | +# ports: |
| 131 | +# - 5432:5432 |
130 | 132 |
|
131 | 133 | steps:
|
132 | 134 | - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
133 | 135 | - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
|
134 |
| - - run: cargo build --tests --workspace |
135 |
| - - run: cargo test --workspace |
| 136 | + |
| 137 | + - run: sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${{ env.POSTGRES_VERSION }} -i -p |
| 138 | + - run: sudo systemctl start postgresql.service |
| 139 | + |
| 140 | +# - run: cargo build --tests --workspace |
| 141 | + - run: cargo test --package crates_io_worker |
136 | 142 |
|
137 | 143 | - run: curl -sL https://github.com/mozilla/grcov/releases/download/v${{ env.GRCOV_VERSION }}/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
|
138 | 144 | - run: rustup component add llvm-tools
|
|
0 commit comments