Skip to content

Commit 798f193

Browse files
krantlukipuki
authored andcommitted
Clean-up and unify CI workflows
1 parent 2adf69b commit 798f193

File tree

2 files changed

+18
-75
lines changed

2 files changed

+18
-75
lines changed

.github/workflows/hygiene.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/testing.yml

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,28 @@
1-
name: "Testing Suite"
1+
name: "Testing"
22
on: [push, pull_request]
33

44
jobs:
5-
unit-test:
6-
permissions:
7-
contents: write
5+
test:
86
strategy:
97
matrix:
10-
platform: [macos-latest, ubuntu-20.04, windows-latest]
11-
12-
runs-on: ${{ matrix.platform }}
8+
os: [macos-latest, ubuntu-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
1310
steps:
14-
- uses: actions/checkout@v4
11+
- name: Checkout
12+
uses: actions/checkout@v4
1513
with:
1614
submodules: true
17-
18-
- name: Initialize Rust Cache
19-
uses: actions/cache@v4
20-
with:
21-
path: |
22-
~/target
23-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
24-
25-
- name: Setup pnpm
26-
uses: pnpm/action-setup@v2
27-
with:
28-
version: 8
29-
30-
- name: Install Rust stable
31-
uses: dtolnay/rust-toolchain@stable
32-
15+
- name: Init cache
16+
uses: Swatinem/rust-cache@v2
3317
- name: Install dependencies (Ubuntu only)
34-
if: matrix.platform == 'ubuntu-20.04'
18+
if: matrix.os == 'ubuntu-latest'
3519
run: |
36-
sudo apt-get update
37-
sudo apt-get install -y libdbus-1-dev pkg-config
38-
39-
- name: Run test suite
40-
working-directory: ./
41-
run: cargo test --features ts-gen
20+
sudo apt-get install -y libdbus-1-dev
21+
- name: cargo check
22+
run: cargo check
23+
- name: cargo fmt
24+
run: cargo fmt --all -- --check
25+
- name: cargo clippy
26+
run: cargo clippy -- -D warnings
27+
- name: cargo test
28+
run: cargo test --all-features

0 commit comments

Comments
 (0)