mirror of
https://github.com/actix/examples
synced 2024-11-24 14:53:00 +01:00
69373e15a9
Bumps [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain) from 1.6.0 to 1.8.0. - [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases) - [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions-rust-lang/setup-rust-toolchain/compare/v1.6.0...v1.8.0) --- updated-dependencies: - dependency-name: actions-rust-lang/setup-rust-toolchain dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: lint
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
fmt:
|
|
name: rustfmt check
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt
|
|
|
|
- name: rustfmt
|
|
uses: actions-rust-lang/rustfmt@v1
|
|
|
|
clippy:
|
|
name: clippy check
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
CI: 1
|
|
CARGO_INCREMENTAL: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
|
|
# - name: Create test DBs
|
|
# run: |
|
|
# sudo apt-get update && sudo apt-get install sqlite3
|
|
# cargo install sqlx-cli --no-default-features --features=rustls,sqlite
|
|
# cd basics/todo
|
|
# DATABASE_URL="sqlite://./todo.db" sqlx database create
|
|
# chmod a+rwx todo.db
|
|
# DATABASE_URL="sqlite://./todo.db" sqlx migrate run
|
|
|
|
- name: clippy
|
|
timeout-minutes: 30
|
|
uses: giraffate/clippy-action@v1
|
|
with:
|
|
reporter: 'github-pr-check'
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
clippy_flags: --workspace --all-features --tests
|