Skip to content

Commit

Permalink
Merge pull request #24 from crawford/ci
Browse files Browse the repository at this point in the history
test: overhaul CI
  • Loading branch information
crawford authored Oct 11, 2023
2 parents 67d8764 + 433c908 commit e079b49
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on: [ pull_request ]
jobs:
code-check:
name: Code Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Parse MSRV
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV
- name: Install Rust Toolchain
run: rustup toolchain install $RUSTUP_TOOLCHAIN
- name: Install Clippy and Rustfmt
run: rustup component add clippy rustfmt

- name: Check format
run: cargo fmt --check

- name: Clippy check
run: cargo clippy --no-deps -- --deny=warnings
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readme = "README.md"
keywords = ["commonmark", "markdown", "links", "validate"]
license = "Apache-2.0"
edition = "2018"
rust-version = "1.70.0"

[dependencies]
hyper = "^0.10"
Expand Down
1 change: 0 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use hyper;
use std::fmt;
use std::path::PathBuf;
use std::sync::Arc;
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ fn check_url(url: &Url) -> Result<(), LinkError> {
}

fn check_path(
root: &PathBuf,
root: &Path,
target: &str,
file: &Path,
allow_absolute_paths: bool,
Expand Down

0 comments on commit e079b49

Please sign in to comment.