summaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorMo Bitar <76752051+mo8it@users.noreply.github.com>2025-05-23 13:26:52 +0200
committerGitHub <noreply@github.com>2025-05-23 13:26:52 +0200
commit2267f996844475f45a96d9582e0ac0d40b4bce79 (patch)
tree94d0634e928e553ba1071fa405b787efb586e84d /.github/workflows/rust.yml
parente36dd7a1207ccf940ba820abc276fa465f45b531 (diff)
parentbf74a3d0a7ae3c0d12ba572fe1c2f1d711c6e530 (diff)
Merge pull request #2247 from rust-lang/website
Website
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml16
1 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 9a5d869..0317f35 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -1,10 +1,16 @@
-name: Rustlings Tests
+name: Check
on:
push:
branches: [main]
+ paths-ignore:
+ - website
+ - '*.md'
pull_request:
branches: [main]
+ paths-ignore:
+ - website
+ - '*.md'
env:
CARGO_TERM_COLOR: always
@@ -14,14 +20,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: cargo clippy -- --deny warnings
+ - name: Clippy
+ run: cargo clippy -- --deny warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: DavidAnson/markdownlint-cli2-action@v16
- with:
- globs: "exercises/**/*.md"
- name: rustfmt
run: cargo fmt --all --check
test:
@@ -40,4 +44,4 @@ jobs:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- name: rustlings dev check
- run: cargo run -- dev check --require-solutions
+ run: cargo dev check --require-solutions