diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..a692bdf --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,46 @@ +name: CI +on: [push, pull_request] +jobs: + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + override: true + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - run: cargo clippy --all-features -- -D warnings + + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Setup Rust toolchain + run: rustup toolchain install stable --profile minimal + + - name: Test + run: cargo test + + rustfmt: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install stable toolchain with rustfmt available + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt + + - run: cargo fmt --check diff --git a/Cargo.toml b/Cargo.toml index 77192ed..96f1cd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,8 @@ license = "Apache-2.0" repository = "https://github.com/bitcoinppl/bip329" keywords = ["bitcoin", "bip329", "labels"] categories = ["bitcoin"] + homepage = "https://github.com/bitcoinppl/bip329" -repository = "https://github.com/bitcoinppl/bip329" documentation = "https://docs.rs/bip329" [features]