From 73375e968bd32d9c11249545782fa386056c21c9 Mon Sep 17 00:00:00 2001 From: Alexei Lozovsky Date: Thu, 29 Apr 2021 22:35:59 +0900 Subject: [PATCH] Run tests on all Windows versions Some time ago GitHub has introduced an alternative version of Windows virtual environment. One of those is possibly untested in this repo. Let's test both of them. Audit tasks and side tracks are still using "windows-latest" because we don't particularly care about them. However, main tests should be run against both versions. You can find currently supported environments here: https://github.com/actions/virtual-environments/ --- .github/workflows/main.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5cb384..5b68df3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,10 @@ on: jobs: test: name: default - runs-on: windows-latest + runs-on: ${{ matrix.windows }} + strategy: + matrix: + windows: [windows-2016, windows-2019] steps: - name: Check out source code uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9c853f..0dc5a77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,10 @@ on: jobs: test: name: release - runs-on: windows-latest + runs-on: ${{ matrix.windows }} + strategy: + matrix: + windows: [windows-2016, windows-2019] steps: - name: Setup Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1