mirror of
https://github.com/Xevion/smart-rgb.git
synced 2025-12-15 10:13:19 -06:00
Update source files
This commit is contained in:
39
.github/workflows/tests.yml
vendored
Normal file
39
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Tests
|
||||
on:
|
||||
- push
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_VERSION: "stable"
|
||||
jobs:
|
||||
test:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.RUST_VERSION }}
|
||||
targets: x86_64-unknown-linux-gnu
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Cache apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
/var/cache/apt/archives/*.deb
|
||||
key: ubuntu-latest-apt-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
ubuntu-latest-apt-
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
libglib2.0-dev \
|
||||
libwebkit2gtk-4.1-dev \
|
||||
libayatana-appindicator3-dev \
|
||||
librsvg2-dev \
|
||||
patchelf
|
||||
- name: Install nextest
|
||||
uses: taiki-e/install-action@nextest
|
||||
- name: Run tests
|
||||
run: cargo nextest run --workspace --no-fail-fast --hide-progress-bar --failure-output final
|
||||
Reference in New Issue
Block a user