leptos-use/.github/workflows/ci.yml

49 lines
1,019 B
YAML
Raw Normal View History

name: Continuous Integration
2023-05-13 23:05:08 +01:00
on:
pull_request:
branches:
- main
paths:
- "**"
- "!/*.md"
- "!/**.md"
2023-05-13 23:05:08 +01:00
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
2023-05-15 02:57:21 +01:00
2023-05-13 23:05:08 +01:00
jobs:
integrity:
name: Integrity Checks on Rust ${{ matrix.toolchain }}
2023-05-13 23:05:08 +01:00
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
toolchain:
- stable
- nightly
2023-05-13 23:05:08 +01:00
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
2024-07-27 19:34:01 +02:00
uses: dtolnay/rust-toolchain@master
2023-05-13 23:05:08 +01:00
with:
toolchain: ${{ matrix.toolchain }}
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- name: Setup Rust Cache
2023-05-13 23:05:08 +01:00
uses: Swatinem/rust-cache@v2
2023-05-15 02:06:57 +01:00
- name: Build
run: cargo build
2023-05-15 02:06:57 +01:00
- name: Format
run: cargo fmt --check
2023-05-13 23:05:08 +01:00
- name: Clippy
run: cargo clippy -- -D warnings