mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 23:04:24 +00:00
34 lines
562 B
YAML
34 lines
562 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
name: Run rustfmt
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- nightly
|
|
os:
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
components: rustfmt
|
|
|
|
- name: Run Rustfmt
|
|
run: cargo fmt -- --check
|