From 96c80c36473b524879e4bc9a662bce86a0573578 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 3 Sep 2021 19:18:39 +0200 Subject: [PATCH] Add changes made by @dblock in #304 --- .github/workflows/rust.yml | 44 +++++++++++++++++--------------------- README.md | 8 +++++++ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 508001d..281ed80 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,8 +1,4 @@ -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] env: CARGO_TERM_COLOR: always @@ -44,25 +40,25 @@ jobs: name: Publish Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: cargo fetch - uses: actions-rs/cargo@v1 - with: - command: fetch - - name: cargo publish check lychee-lib - uses: actions-rs/cargo@v1 - with: - command: publish - args: --dry-run --manifest-path lychee-lib/Cargo.toml - - name: cargo publish check lychee - uses: actions-rs/cargo@v1 - with: - command: publish - args: --dry-run --manifest-path lychee-bin/Cargo.toml + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: cargo fetch + uses: actions-rs/cargo@v1 + with: + command: fetch + - name: cargo publish check lychee-lib + uses: actions-rs/cargo@v1 + with: + command: publish + args: --dry-run --manifest-path lychee-lib/Cargo.toml + - name: cargo publish check lychee + uses: actions-rs/cargo@v1 + with: + command: publish + args: --dry-run --manifest-path lychee-bin/Cargo.toml publish: if: startsWith(github.ref, 'refs/tags/') diff --git a/README.md b/README.md index f6a951d..42a5361 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,14 @@ Try one of these links to get started: - [good first issues](https://github.com/lycheeverse/lychee/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) - [help wanted](https://github.com/lycheeverse/lychee/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) +Lychee is written in Rust. Install [rust-up](https://rustup.rs/) to get started. +Begin my making sure the following commands succeed without errors. + +```bash +cargo test # runs tests +cargo clippy # lints code +``` + ## Troubleshooting and workarounds We collect a list of common workarounds for various websites in our [troubleshooting guide](./TROUBLESHOOTING.md).