Uhhhh hoping it runs ig?
This commit is contained in:
parent
26a48f23a5
commit
be021c4b16
2 changed files with 32 additions and 0 deletions
18
.forgejo/workflows/ci.yaml
Normal file
18
.forgejo/workflows/ci.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Test build & run
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Deno 2
|
||||||
|
uses: denoland/setup-deno@v2
|
||||||
|
with:
|
||||||
|
deno-version: v2.x
|
||||||
|
- name: Build using Cargo
|
||||||
|
run: cargo build --verbose
|
||||||
|
- name: Run unit tests
|
||||||
|
run: cargo test --verbose
|
|
@ -98,3 +98,17 @@ impl<'r> FromParam<'r> for KnownInstanceSoftware<'r> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
/// If this test fails, known-software.json is invalid
|
||||||
|
#[test]
|
||||||
|
fn known_software_is_valid() {
|
||||||
|
assert!(!KNOWN_SOFTWARE.groups.is_empty());
|
||||||
|
assert!(!KNOWN_SOFTWARE.software.is_empty());
|
||||||
|
assert!(!KNOWN_SOFTWARE_NAMES.is_empty());
|
||||||
|
assert!(!KNOWN_SOFTWARE_NODEINFO_NAMES.is_empty());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue