Compare commits

...

7 commits

Author SHA1 Message Date
caee49cff8 Pass CI
Some checks are pending
/ verify (push) Waiting to run
2026-03-23 00:47:01 -03:00
4e631a7749 Fail CI
Some checks are pending
/ verify (push) Waiting to run
2026-03-22 23:05:53 -03:00
b1c18ad827 Pass CI
Some checks are pending
/ verify (push) Waiting to run
2026-03-22 22:50:50 -03:00
2f46f65654 Fail CI
Some checks are pending
/ verify (push) Waiting to run
2026-03-22 22:45:13 -03:00
800536e625 Move ci user setup to workflow file 2026-03-21 10:15:43 -03:00
f856866a53 Fix Git safe.directory errors 2026-03-21 09:29:51 -03:00
efcbab04c6 Extend test coverage for test and fixed modules 2026-03-21 09:29:33 -03:00
4 changed files with 26 additions and 9 deletions

View file

@ -34,17 +34,22 @@ jobs:
- name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh
- name: Setup permissions for ci user
run: |
useradd -m ci && chown -R ci:ci .
git config --global --add safe.directory "$PWD"
- name: Build
run: just build
run: just ci build
- name: Format
run: just format-assess
run: just ci format-assess
- name: Lint
run: just lint-assess
run: just ci lint-assess
- name: Cargo check
run: just check
run: just ci check
- name: Test
run: just test
run: just ci test
- name: Assess test coverage
run: just cover-assess
run: just ci cover-assess

View file

@ -435,6 +435,12 @@ choose:
alias ch := choose
[script, private]
ci recipe:
su ci -c "just {{ recipe }}"
## VARIABLES
export CARGO_TERM_COLOR := 'always'
musl_target := "x86_64-unknown-linux-musl"
@ -454,4 +460,6 @@ lockfile_version := ```
| grep version | cut -d '"' -f 2
```
## OPTIONS
set unstable

4
Cargo.lock generated
View file

@ -854,9 +854,9 @@ dependencies = [
[[package]]
name = "rustls-webpki"
version = "0.103.9"
version = "0.103.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53"
checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
dependencies = [
"ring",
"rustls-pki-types",

View file

@ -724,7 +724,7 @@ mod tests {
}
#[test]
fn not_found_fallback_error() {
fn not_found_asset_error() {
let error = fallback("not_found.png", &Graph::default()).unwrap_err();
assert!(matches!(&error.kind, AssetErrorKind::NotFound));
@ -736,6 +736,7 @@ mod tests {
}
#[cfg(test)]
#[cfg(unix)]
#[expect(clippy::panic_in_result_fn)]
mod serial_tests {
use std::{fs, os::unix::fs::PermissionsExt as _};
@ -755,6 +756,9 @@ mod serial_tests {
permissions.set_mode(0o200);
fs::set_permissions(&file, permissions)?;
let new_permissions = fs::metadata(&file)?.permissions();
assert_eq!(new_permissions.mode() & 0o777, 0o200);
let error = fallback("unreadable.png", &Graph::default()).unwrap_err();
assert!(matches!(&error.kind, AssetErrorKind::IO));