From a4845b3551ab673058dac94db5d1d9967d0c213e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Brunk?= Date: Sat, 5 Oct 2024 23:50:20 +0200 Subject: [PATCH] Add CI test --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5bf8674 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Run tests + +on: ["push"] + +jobs: + build: + strategy: + matrix: + include: + - { target: linux-64, os: ubuntu-latest } + - { target: osx-arm64, os: macos-14 } + fail-fast: false + + runs-on: ${{ matrix.os }} + timeout-minutes: 5 + + defaults: + run: + shell: bash + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install magic + run: | + curl -ssL https://magic.modular.com | bash + + - name: Execute tests + run: | + source $HOME/.bash_profile + + magic run test