diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ed6627..ed03d21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,11 +45,22 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fixtures: - name: Test fixtures - runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + os: + - name: Linux + runner: ubuntu-22.04 + - name: macOS + runner: macos-12 + name: Test fixtures [${{ matrix.os.name }}] + runs-on: ${{ matrix.os.runner }} steps: - name: Checkout the repository uses: actions/checkout@v4 + - name: Install coreutils for MacOS + if: matrix.os.name == 'macOS' + run: brew install coreutils - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Build the project diff --git a/fixtures/README.md b/fixtures/README.md index 023af52..6158d7a 100644 --- a/fixtures/README.md +++ b/fixtures/README.md @@ -7,6 +7,9 @@ This directory contains the [test fixtures](https://en.wikipedia.org/wiki/Test_f 1. Build the project in debug mode: `cargo build` 2. Execute the runner script in this directory: `./test-fixtures.sh` +On `macOS` you need to have [coreutils](https://www.gnu.org/software/coreutils/) installed to run the script. +The simplest way is to install it via [Homebrew](https://brew.sh/): `brew install coreutils` + ### Adding new fixtures Create an appropriately named directory for the test fixture you want to add. e.g. `test-file-upload`