From 688ff4268c9a309678d98edd4ecd43b03e5f3b32 Mon Sep 17 00:00:00 2001 From: Alexey Michurin Date: Thu, 13 Jun 2024 19:38:14 +0300 Subject: [PATCH] CI: build on true ms windows and run using bash --- .github/workflows/ci.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 312f753..a3628e5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: - run: "go version" - run: "go build ./cmd/..." - run: "./behavioral-tests/run.sh" - build-windows: # TODO switch to windows-latest and run integration tests + x-build-windows: runs-on: ubuntu-latest timeout-minutes: 10 name: "Simple build on MS Windows" @@ -40,16 +40,17 @@ jobs: GOARCH: amd64 - run: "file pplog.exe" windows: - runs-on: windows-latest # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md + runs-on: windows-latest timeout-minutes: 10 name: "Build on MS Windows" steps: - uses: actions/checkout@v4 - - run: "go version" + - shell: bash + - run: "go version" # go1.21.11 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md - run: "go build ./cmd/..." - run: "dir" - run: "./pplog.exe -v" - - run: "./pplog.exe echo \"{\"\"time\"\":\"\"2024-06-12T12:00:00Z\"\",\"\"level\"\":\"\"INFO\"\",\"\"msg\"\":\"\"Hello\"\"}\"" + - run: "./pplog.exe echo '{\"time\":\"2024-06-12T12:00:00Z\",\"level\":\"INFO\",\"msg\":\"Hello\"}'" test: runs-on: ubuntu-latest timeout-minutes: 10