diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..356c859 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +# CI workflow runs all source quality tests. It does not build the release binary. +# +name: SawfishCI + +on: + push: + branches: [ main, actions_test ] + pull_request: + branches: [ main ] + +jobs: + qc: + name: Sawfish source QC + + env: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.84.0 + components: clippy, rustfmt + + - name: Check source formatting + run: cargo fmt --check + + - name: Build + run: cargo build --verbose + + - name: Test + run: cargo test --verbose + + - name: Clippy + run: cargo clippy --verbose -- -D warnings + + - name: Clippy on tests + run: cargo clippy --tests --verbose -- -D warnings diff --git a/.github/workflows/github-repo-stats.yml b/.github/workflows/github-repo-stats.yml deleted file mode 100644 index fda0851..0000000 --- a/.github/workflows/github-repo-stats.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: github-repo-stats - -on: - schedule: - # Run this once per day, towards the end of the day for keeping the most - # recent data point most meaningful (hours are interpreted in UTC). - - cron: "0 23 * * *" - workflow_dispatch: # Allow for running this manually. - -jobs: - j1: - name: github-repo-stats - runs-on: ubuntu-latest - steps: - - name: run-ghrs - # Use latest release. - uses: jgehrcke/github-repo-stats@RELEASE - with: - ghtoken: ${{ secrets.ghrs_github_api_token }} -