Skip to content

Commit

Permalink
github actions #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dudochkin-victor committed Jun 2, 2022
1 parent 5579504 commit 9b09030
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,34 @@ on: [push, pull_request]

jobs:
build:

name: Coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install udev
run: sudo apt-get install libudev-dev
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
default: true
components: rustfmt, clippy

- name: Install udev
run: sudo apt-get install libudev-dev

- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

clippy_check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- run: rustup component add clippy
- name: Install udev
run: sudo apt-get install libudev-dev
- uses: actions/checkout@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9b09030

Please sign in to comment.