Skip to content

Commit

Permalink
Clean-up and unify CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
krant committed Feb 4, 2025
1 parent b2d26a4 commit be52b5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 75 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/hygiene.yml

This file was deleted.

49 changes: 18 additions & 31 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,28 @@
name: "Testing Suite"
name: "Testing"
on: [push, pull_request]

jobs:
unit-test:
permissions:
contents: write
test:
strategy:
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Initialize Rust Cache
uses: actions/cache@v4
with:
path: |
~/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: Init cache
uses: Swatinem/rust-cache@v2
- name: Install dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev pkg-config
- name: Run test suite
working-directory: ./
run: cargo test --features ts-gen
sudo apt-get install -y libdbus-1-dev
- name: cargo check
run: cargo check
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy -- -D warnings
- name: cargo test
run: cargo test --all-features

0 comments on commit be52b5d

Please sign in to comment.