From cecc9c658b48ad01d68497be4a45500c05b93c1b Mon Sep 17 00:00:00 2001 From: Ignacio Aldama Vicente Date: Wed, 25 Oct 2023 16:38:06 +0200 Subject: [PATCH] test: add tests for MacOS --- .github/workflows/macos.yml | 25 +++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..3dcee15 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,25 @@ +name: E2E MacOS (GitHub Actions) + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + macos-e2e: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Run Tests + run: cargo test + \ No newline at end of file diff --git a/README.md b/README.md index c6a32a9..af09e57 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ | Linux | btrfs | [![E2E Linux (btrfs)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/linux.yml) | | Linux | xfs | [![E2E Linux (xfs)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/linux.yml) | | Windows | ReFS | [![E2E Windows (ReFS)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/windows.yml) | -| MacOS | APFS | | +| MacOS | APFS | [![E2E MacOS (APFS)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/macos.yml/badge.svg?branch=main)](https://github.com/nachoaldamav/CopyOnWrite/actions/workflows/macos.yml) | -> Note: All the tests run in Google Cloud VMs with the correct filesystem, this way we ensure the tests run correctly. +> Note: Linux and Windows tests run in Google Cloud VMs to ensure the correct file system is used. MacOS tests run only GitHub Actions. ## Description