From 2d03f2861795ab6affc4280e393a7884537d1c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 9 Jul 2024 15:54:23 +0100 Subject: [PATCH] ci: run tests on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run the tests for the code checking error messages that may be platform specific, see #82. Signed-off-by: Miroslav Bajtoš --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4324128..79b6405 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,27 @@ name: CI on: [push] + +env: + ZINNIA_VERSION: v0.20.2 jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: curl -L https://github.com/filecoin-station/zinnia/releases/download/v0.20.2/zinnia-linux-x64.tar.gz | tar -xz + - run: curl -L https://github.com/filecoin-station/zinnia/releases/download/${{ env.ZINNIA_VERSION }}/zinnia-linux-x64.tar.gz | tar -xz - uses: actions/setup-node@v4 - run: npx standard - run: ./zinnia run test.js + + test-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: robinraju/release-downloader@v1.11 + with: + repository: 'filecoin-station/zinnia' + tag: ${{ env.ZINNIA_VERSION }} + fileName: zinnia-windows-x64.zip + extract: true + token: ${{ secrets.GITHUB_TOKEN }} + - run: ./zinnia.exe run test.js