commit e456922d78d9a56099f6c0cc71e8729526902fa7 parent 54d41ae3f7ee4b8fc5e569c31e89fc11448098f1 Author: Sylvia Ivory <git@sivory.net> Date: Thu, 19 Jun 2025 21:45:58 -0700 Add GitHub workflow Diffstat:
| A | .github/workflows/testing.yml | | | 29 | +++++++++++++++++++++++++++++ |
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml @@ -0,0 +1,29 @@ +# Referenced https://github.com/eza-community/eza/blob/main/.github/workflows/unit-tests.yml +name: Testing +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: +jobs: + lint: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - run: rustup toolchain install sable --profile minimal + uses: Swatinem/rust-cache@v2 + - name: Run rustfmt checks + run: cargo fmt --check + - name: Run clippy lints + if: ${{ matrix.os != 'windows-latest' }} + run: cargo clippy -- -D warnings + - name: Run weather tests + run: cargo test --package fjordgard-weather + # Unsplash requires API key & it would waste requests + # - name: Run unsplash tests + # run: cargo test --package fjordgard-unsplash