From f82df58f3d568bd855e8c92a4cc0fa7759e3903f Mon Sep 17 00:00:00 2001 From: Andy Barron Date: Tue, 9 Jul 2024 11:56:30 -0700 Subject: [PATCH] scripts --- .github/workflows/ci2.yaml | 9 +++++---- Justfile | 13 ------------- scripts/ci/check | 2 ++ scripts/ci/format | 2 ++ scripts/ci/test | 2 ++ scripts/release | 2 ++ 6 files changed, 13 insertions(+), 17 deletions(-) delete mode 100644 Justfile create mode 100755 scripts/ci/check create mode 100755 scripts/ci/format create mode 100755 scripts/ci/test create mode 100755 scripts/release diff --git a/.github/workflows/ci2.yaml b/.github/workflows/ci2.yaml index 96423b6..9e97dd9 100644 --- a/.github/workflows/ci2.yaml +++ b/.github/workflows/ci2.yaml @@ -16,11 +16,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: + components: clippy, rustfmt toolchain: ${{ matrix.rust }} - - run: cargo install just cargo-tarpaulin cargo-msrv - - run: just format-ci - - run: just check-ci - - run: just test-ci + - run: cargo install cargo-tarpaulin cargo-msrv + - run: ./scripts/ci/format + - run: ./scripts/ci/check + - run: ./scripts/ci/test - run: cargo msrv verify if: ${{ matrix.rust == 'stable' }} - uses: coverallsapp/github-action@v2 diff --git a/Justfile b/Justfile deleted file mode 100644 index eb9093e..0000000 --- a/Justfile +++ /dev/null @@ -1,13 +0,0 @@ -release: - cargo release - -# CI tasks - -check-ci: - cargo clippy --all-targets -- -Dwarnings - -format-ci: - cargo fmt -- --check --verbose - -test-ci: - cargo tarpaulin -v --all-features --ignore-tests --out Lcov diff --git a/scripts/ci/check b/scripts/ci/check new file mode 100755 index 0000000..947df67 --- /dev/null +++ b/scripts/ci/check @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +cargo clippy --all-targets -- -Dwarnings diff --git a/scripts/ci/format b/scripts/ci/format new file mode 100755 index 0000000..b4e6e47 --- /dev/null +++ b/scripts/ci/format @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +cargo fmt -- --check --verbose diff --git a/scripts/ci/test b/scripts/ci/test new file mode 100755 index 0000000..4a1d271 --- /dev/null +++ b/scripts/ci/test @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +cargo tarpaulin -v --all-features --ignore-tests --out Lcov diff --git a/scripts/release b/scripts/release new file mode 100755 index 0000000..186ade9 --- /dev/null +++ b/scripts/release @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +cargo release