Skip to content

Commit

Permalink
Use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Oct 3, 2022
1 parent ef672e0 commit f70c0d7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,38 @@
name: CI
on: [push]

jobs:
build_and_test:
runs-on: ubuntu-22.04
container: rust:1.57
steps:
- uses: actions/checkout@v2
- run:
name: Install dependencies
command: apt-get update && apt-get install -y libdbus-glib-1-dev
- run: cargo build
- run: cargo test

lint:
runs-on: ubuntu-22.04
container: rust:1.57
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- run: cargo clippy --all-targets --all-features -- -D warnings

fmt:
runs-on: ubuntu-22.04
container: rust:1.57
steps:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- run: cargo fmt -- --check

audit:
runs-on: ubuntu-22.04
container: rnestler/archlinux-rust:1.64.0
steps:
- uses: actions/checkout@v2
- run: pacman --noconfirm -Sy cargo-audit
- run: cargo audit --ignore RUSTSEC-2020-0071

0 comments on commit f70c0d7

Please sign in to comment.