From 29ec08cd3668535117738478a09f0b7f1fea520e Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Wed, 20 Aug 2025 13:41:19 -0500 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d7f14d2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file