mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
23 lines
502 B
YAML
23 lines
502 B
YAML
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
ci:
|
||
|
name: CI
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@master
|
||
|
with:
|
||
|
fetch-depth: 50
|
||
|
- name: Install Rust Stable
|
||
|
run: |
|
||
|
rustc -vV
|
||
|
rustup update stable
|
||
|
rustup default stable
|
||
|
rustc -vV
|
||
|
- name: Run rustfmt
|
||
|
run: cargo fmt -- --check
|
||
|
- name: Run clippy
|
||
|
run: cargo clippy -- -Dwarnings
|
||
|
- name: Run tests
|
||
|
run: cargo test --verbose
|