Skip to content

Commit

Permalink
Added GitHub actions
Browse files Browse the repository at this point in the history
FIX: add --tests flag

FIX: add apt libraries

FIX: use stable toolchain in clippy action

UPDATE: add install actions.

UPDATE: delete `--all` from GitHub actions.

ADD: github actions

CLIPPY: Delete `into_iter`
  • Loading branch information
not-elm committed Mar 19, 2024
1 parent c4fb29c commit 590ced1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit Test
run-name: ${{ github.actor }} is testing
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: Checkout
uses: actions/checkout@v3
- name: Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy
run: cargo clippy --tests
test:
runs-on: ubuntu-latest
steps:
- name: Install
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Checkout
uses: actions/checkout@v3
- name: Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Test
run: cargo test
2 changes: 1 addition & 1 deletion src/input_sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ where
ButtonSequence(InputSequence {
event,
time_limit: None,
acts: Vec::from_iter(acts.into_iter()),
acts: Vec::from_iter(acts),
})
}
/// Specify a time limit from the start of the first matching input.
Expand Down

0 comments on commit 590ced1

Please sign in to comment.