Skip to content

Commit

Permalink
ci: add cargo test (#508)
Browse files Browse the repository at this point in the history
* ci: add cargo test

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: fix

* ci: cache

* ci: skip test_parse_chart
  • Loading branch information
sjfhsjfh authored Feb 3, 2025
1 parent a926a6c commit 41857a9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Cargo Test

on:
push: {}
pull_request: {}

jobs:
cargo-test:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Prepare
run: |
sudo apt-get update
sudo apt-get install librust-alsa-sys-dev libglib2.0-dev libasound2t64 libatk-adaptor libgail-common libgtk-3-dev
- name: Setup Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
rustup toolchain install nightly-2023-02-01
rustup default nightly-2023-02-01
- name: Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
cache-all-crates: "true"

- name: Run tests
run: |
cargo test -p phira --no-default-features -- --skip test_parse_chart

0 comments on commit 41857a9

Please sign in to comment.