mirror of
https://github.com/st3fan/ewm.git
synced 2026-10-25 02:02:15 +00:00
25 lines
496 B
YAML
25 lines
496 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
rust:
|
|
name: Rust checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install SDL2
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libsdl2-dev
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Format
|
|
run: cargo fmt --check
|
|
- name: Clippy
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
- name: Test
|
|
run: cargo test
|