From a7474f8617963a40f0fd857317ba5db32af91268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:35:36 +0200 Subject: [PATCH] also added test workflow --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 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..2e9ce82 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +name: "Build & Test" +on: + push: + branches: + - '**' + tags-ignore: + - '**' + pull_request: + paths-ignore: + - 'docs/*' + - '*.yml' + - '*.md' + - 'LICENSE' + +defaults: + run: + shell: bash -l {0} + +jobs: + build: + name: "Build & Test" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest # Linux - amd64 + - macos-12 # macOS - amd64 + - macos-latest # macOS - arm64/M1 + - windows-latest # Windows - amd64 + steps: + - name: "Cancel similar actions in progress" + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + + - name: "Setup Arturo" + uses: arturo-lang/arturo-action@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: "Checkout" + uses: actions/checkout@main + with: + submodules: recursive + + - name: Run unit tests + run: | + echo "${{ github.workspace }}/bin" >> $GITHUB_PATH + arturo tests/tests.art \ No newline at end of file