diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc50059..0c27365 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: CI -on: [push, pull_request] +on: [ push, pull_request ] env: RUSTFLAGS: -Dwarnings @@ -19,25 +19,30 @@ jobs: - nightly timeout-minutes: 45 steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - + uses: actions/checkout@v4 + - + uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.rust }} components: clippy, rustfmt - - run: cargo install cargo-hack --locked - - uses: taiki-e/install-action@nextest - - uses: actions/setup-node@v4 + - + run: cargo install cargo-hack --locked + - + uses: taiki-e/install-action@nextest + - + uses: actions/setup-node@v4 with: node-version: lts/Iron # 20 - - uses: denoland/setup-deno@v1 + - + uses: denoland/setup-deno@v1 with: deno-version: v1.45.x - - uses: Swatinem/rust-cache@v2.7.3 - - run: npm install --global lefthook@1.6.9 remark-cli@12.0.1 - - name: Install yj - run: | - curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o yj - chmod +x yj - sudo mv yj /usr/local/bin/ - - run: lefthook run --force pre-commit - - run: cargo hack test --feature-powerset + - + uses: Swatinem/rust-cache@v2.7.3 + - + run: ./install.sh + - + run: lefthook run --force pre-commit + - + run: cargo hack test --feature-powerset diff --git a/.remarkrc.json b/.remarkrc.json new file mode 100644 index 0000000..d636104 --- /dev/null +++ b/.remarkrc.json @@ -0,0 +1,6 @@ +{ + "plugins": [ + ["remark-validate-links", {}], + ["remark-lint-no-dead-urls", {}] + ] +} diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..2f4a875 --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +npm install --global \ + lefthook@1.6.9 \ + remark-cli@12.0.1 \ + remark-validate-links@8.0.0 \ + remark-lint-no-dead-urls@1.1.0 + +# Install yj +curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o /tmp/yj +chmod +x /tmp/yj +sudo mv /tmp/yj /usr/local/bin/yj