ci: Add a test workflow

This commit adds a simple CI job that runs cargo test, to help with ensuring changes don't regress in tests

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
This commit is contained in:
Ryan Brue 2025-08-20 13:41:19 -05:00 committed by Ashley Wulber
parent 16868ca990
commit 29ec08cd36

20
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Cargo Build & Test
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: cosmic-files - latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update; sudo apt-get install libclang-dev libglib2.0-dev libxkbcommon-dev
- run: rustup update stable && rustup default stable
- run: cargo test --verbose