Skip to content

Commit

Permalink
Merge pull request #3 from marcelohdez/add-ci
Browse files Browse the repository at this point in the history
Add CI: linting, building, and testing
  • Loading branch information
marcelohdez authored Feb 22, 2024
2 parents 16c870b + 14947ec commit b2ed025
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rust

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libxkbcommon-dev libwayland-dev
- name: Lint
uses: wearerequired/lint-action@v2
with:
clippy: true
rustfmt: true
- name: Run tests
run: cargo test --verbose

0 comments on commit b2ed025

Please sign in to comment.