diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f93d2731..5c7a0cc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,8 @@ jobs: with: toolchain: ${{ steps.parse-msrv.outputs.version }} + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: shared-key: msrv-cache @@ -110,6 +112,8 @@ jobs: with: target: ${{ matrix.target }} + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: key: ${{ matrix.target }} @@ -133,6 +137,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: key: ${{ matrix.features }} @@ -151,6 +157,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: save-if: ${{ github.ref == 'refs/heads/master' }} @@ -178,14 +186,14 @@ jobs: toolchain: ${{ matrix.rust-version }} components: clippy + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: save-if: ${{ github.ref == 'refs/heads/master' }} - name: Run cargo clippy - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 - with: - command: custom-clippy # cargo alias to allow reuse of config locally + run: cargo custom-clippy # cargo alias to allow reuse of config locally ipfs-integration-test: name: IPFS Integration tests @@ -198,6 +206,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: save-if: ${{ github.ref == 'refs/heads/master' }} @@ -214,6 +224,8 @@ jobs: with: components: rustfmt + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - name: Check formatting run: cargo fmt -- --check @@ -224,6 +236,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable + - uses: r7kamura/rust-problem-matchers@d58b70c4a13c4866d96436315da451d8106f8f08 #v1.3.0 + - name: Ensure `full` feature contains all features run: | ALL_FEATURES=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "libp2p") | .features | keys | map(select(. != "full")) | sort | join(" ")')