Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Rust

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

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,22 +14,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Cache cargo
uses: Swatinem/rust-cache@v2

- name: Fmt
run: cargo fmt --check
- name: Fmt
run: cargo fmt --check

- name: Clippy
run: cargo clippy -p penview -- -D warnings
- name: Clippy
run: cargo clippy -p penview -- -D warnings

- name: Build
run: cargo build -p penview --verbose
- name: Build
run: cargo build -p penview --verbose

- name: Run tests
run: cargo test -p penview --verbose
- name: Run tests
run: cargo test -p penview --verbose
Loading