name: CI on: push: branches: - main pull_request: branches: - main jobs: # We're using nightly for the async traits. # TODO: Revert back to stable when that is stabilized. test_ed25519: name: Test with ed25519 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 - uses: dtolnay/rust-toolchain@nightly - run: cargo test test_redpallas: name: Test with redpallas runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 - uses: dtolnay/rust-toolchain@nightly - run: cargo test --features redpallas clippy: name: Clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 with: persist-credentials: false - uses: dtolnay/rust-toolchain@nightly with: components: rustfmt, clippy - name: Run clippy manually without annotations run: cargo clippy --all-targets -- -D warnings fmt: name: Rustfmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 with: persist-credentials: false - uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - uses: Swatinem/rust-cache@v2 - name: Run rustfmt run: cargo fmt --all -- --check actionlint: runs-on: ubuntu-latest continue-on-error: true steps: - uses: actions/checkout@v4.1.1 - uses: reviewdog/action-actionlint@v1.41.0 with: level: warning fail_on_error: false