30
30
31
31
steps :
32
32
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33
+ with :
34
+ persist-credentials : false
33
35
34
36
- uses : tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
35
37
id : changed-files-non-js
97
99
98
100
steps :
99
101
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102
+ with :
103
+ persist-credentials : false
100
104
101
105
- run : rustup component add rustfmt
102
106
- run : rustup component add clippy
@@ -115,10 +119,12 @@ jobs:
115
119
116
120
steps :
117
121
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122
+ with :
123
+ persist-credentials : false
118
124
119
125
- uses : Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
120
126
121
- - run : cargo install cargo-deny --vers ${{ env. CARGO_DENY_VERSION } }
127
+ - run : cargo install cargo-deny --vers ${CARGO_DENY_VERSION}
122
128
- run : cargo deny check
123
129
124
130
backend-test :
@@ -136,33 +142,36 @@ jobs:
136
142
137
143
steps :
138
144
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
145
+ with :
146
+ persist-credentials : false
147
+
139
148
- uses : Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
140
149
with :
141
150
# Ensure that we cache from the right target directory. (See below
142
151
# for the details of how and when this gets created.)
143
152
workspaces : ' . -> ${{ env.CARGO_TARGET_DIR }}'
144
153
145
154
# Update `pg_dump` to the same version as the running PostgreSQL server
146
- - run : sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${{ env. POSTGRES_VERSION } } -i -p
155
+ - run : sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${POSTGRES_VERSION} -i -p
147
156
- run : sudo systemctl start postgresql.service
148
157
- run : sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres'"
149
158
150
159
# Create a working directory on /mnt, which is a larger temporary
151
160
# filesystem than /, that we can then point our later commands to.
152
161
- run : |
153
- sudo mkdir ${{ env. CARGO_TARGET_DIR } }
154
- sudo chown $(id -u):$(id -g) ${{ env. CARGO_TARGET_DIR } }
162
+ sudo mkdir ${CARGO_TARGET_DIR}
163
+ sudo chown $(id -u):$(id -g) ${CARGO_TARGET_DIR}
155
164
156
165
- run : cargo build --tests --workspace
157
166
- run : cargo test --workspace
158
167
159
- - run : curl -sL https://github.com/mozilla/grcov/releases/download/v${{ env. GRCOV_VERSION } }/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
168
+ - run : curl -sL https://github.com/mozilla/grcov/releases/download/v${GRCOV_VERSION}/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
160
169
- run : rustup component add llvm-tools
161
- - run : ./grcov . --binary-path ${{ env. CARGO_TARGET_DIR }} /debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" --ignore "${{ env. CARGO_TARGET_DIR }} /debug/build/**" -o ${{ env. CARGO_TARGET_DIR } }/coverage.lcov
170
+ - run : ./grcov . --binary-path ${CARGO_TARGET_DIR} /debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" --ignore "${CARGO_TARGET_DIR} /debug/build/**" -o ${CARGO_TARGET_DIR}/coverage.lcov
162
171
163
172
- uses : codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
164
173
with :
165
- files : ${{ env. CARGO_TARGET_DIR } }/coverage.lcov
174
+ files : ${CARGO_TARGET_DIR}/coverage.lcov
166
175
env :
167
176
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
168
177
@@ -174,6 +183,8 @@ jobs:
174
183
175
184
steps :
176
185
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
186
+ with :
187
+ persist-credentials : false
177
188
178
189
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
179
190
with :
@@ -208,6 +219,8 @@ jobs:
208
219
209
220
steps :
210
221
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
222
+ with :
223
+ persist-credentials : false
211
224
212
225
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
213
226
with :
@@ -244,6 +257,8 @@ jobs:
244
257
245
258
steps :
246
259
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
260
+ with :
261
+ persist-credentials : false
247
262
248
263
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
249
264
with :
0 commit comments