mirror of
https://github.com/ekzhang/bore.git
synced 2025-12-14 19:07:48 +01:00
* Update dependencies * Bump version to 0.5.1 * Try to deflake tests in GitHub Actions * Add some retries to e2e_test * Revert cargo.lock changes * Update only a couple deps * Fix CI running twice :( * Fix typo
52 lines
905 B
YAML
52 lines
905 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
rust:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
|
|
- run: cargo build --all-features
|
|
|
|
- run: cargo test
|
|
|
|
rustfmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: rustfmt
|
|
|
|
- run: cargo fmt -- --check
|
|
|
|
clippy:
|
|
name: Clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: clippy
|
|
|
|
- run: cargo clippy -- -D warnings
|