Skip to content

Commit 29d1fcc

Browse files
committed
testing...
1 parent 65c25ea commit 29d1fcc

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/ci.yml

+21-17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
- pg-dump-version
89

910
pull_request:
1011

@@ -20,7 +21,6 @@ env:
2021
GRCOV_VERSION: 0.8.19
2122
# renovate: datasource=npm depName=pnpm
2223
PNPM_VERSION: 9.0.6
23-
# renovate: datasource=docker depName=postgres
2424
POSTGRES_VERSION: 13
2525

2626
jobs:
@@ -112,33 +112,37 @@ jobs:
112112

113113
env:
114114
RUST_BACKTRACE: 1
115-
TEST_DATABASE_URL: postgres://postgres:postgres@localhost/postgres
115+
TEST_DATABASE_URL: postgres://myuser:mypassword@localhost/mydatabase
116116
RUSTFLAGS: "-D warnings -Cinstrument-coverage"
117117
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
118118

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
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
132132

133133
steps:
134134
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
135135
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
136136

137-
# Update `pg_dump` to the same version as the running PostgreSQL server
138137
- 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+
- run: |
140+
createuser myuser
141+
createdb --owner myuser mydatabase
142+
psql -c "ALTER USER myuser WITH PASSWORD 'mypassword'"
139143
140144
- run: cargo build --tests --workspace
141-
- run: cargo test --workspace
145+
- run: cargo test --package crates_io_worker
142146

143147
- run: curl -sL https://github.com/mozilla/grcov/releases/download/v${{ env.GRCOV_VERSION }}/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
144148
- run: rustup component add llvm-tools

0 commit comments

Comments
 (0)