Skip to content

Fix: update CI for new broken-md-links version #131

Fix: update CI for new broken-md-links version

Fix: update CI for new broken-md-links version #131

Workflow file for this run

name: CI
on: [push]
jobs:
check-broken-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache unpublished "broken-md-links" dependency
uses: actions/[email protected]
with:
path: ~/.cargo/bin
key: broken-md-links-tool
- name: Get "broken-md-links" tool
run: |
if ! type broken-md-links > /dev/null; then
cargo install --git https://github.com/ClementNerma/broken-md-links.git
fi
- name: Look for broken MD links
run: broken-md-links ${GITHUB_WORKSPACE}
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/[email protected]
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/[email protected]
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/[email protected]
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run Cargo tests
run: |
cargo test -- --test-threads=1
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/[email protected]
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/[email protected]
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/[email protected]
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Check linting
run: |
cargo clippy -- -D warnings