Improve Windows CI Testing (#3220)

Build and Test 3m and CS under Windows 10

This improves testing considerably on Windows.
For both PRs and Pushes, build 3m and CS on Windows and run tests.
This commit is contained in:
Paulo Matos 2020-05-28 14:19:50 +02:00 committed by GitHub
parent 72ef9f8b6b
commit bb4317e545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 43 deletions

View File

@ -66,42 +66,3 @@ jobs:
raco test -l tests/db/all-tests
raco test -c tests/stxparse
raco test -c tests/syntax
buildtest-win:
runs-on: windows-latest
# According to
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#windows-server-2019
# VS2019 is what is installed in the hosted runners:
# Version: VisualStudio/16.3.6+29418.71
# Location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
steps:
- uses: actions/checkout@v2
- name: Build
working-directory: .\racket\src\worksp
shell: cmd
run: |
call msvcprep.bat x86_amd64
call build.bat
call ..\..\racket.exe csbuild.rkt
..\..\raco.exe pkg install --auto --no-docs racket-test unstable-flonum-lib net-test
- name: Test
shell: cmd
run: |
call racket\raco.exe test -l tests/racket/test
call racket\racket.exe -l tests/racket/contract/all
call racket\raco.exe test -l tests/json/json
call racket\raco.exe test -l tests/file/main
call racket\raco.exe test -l tests/net/head
call racket\raco.exe test -l tests/net/uri-codec
call racket\raco.exe test -l tests/net/url
call racket\raco.exe test -l tests/net/url-port
call racket\raco.exe test -l tests/net/encoders
call racket\raco.exe test -l tests/openssl/basic
call racket\raco.exe test -l tests/openssl/https
call racket\raco.exe test -l tests/match/main
call racket\raco.exe test -l tests/zo-path
call racket\raco.exe test -c tests/xml
call racket\raco.exe test -c tests/future
call racket\raco.exe test -l tests/db/all-tests
racket\raco.exe test -c tests/stxparse

View File

@ -1,6 +1,6 @@
name: CI Win
on: [push]
on: [push, pull_request]
jobs:
@ -10,6 +10,11 @@ jobs:
buildtest-win:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
mode: ['3m', 'CS']
# According to
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#windows-server-2019
# VS2019 is what is installed in the hosted runners:
@ -17,14 +22,28 @@ jobs:
# Location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
steps:
- uses: actions/checkout@v2
- name: Build
- name: Build 3m
working-directory: .\racket\src\worksp
if: matrix.mode == '3m'
shell: cmd
run: |
call msvcprep.bat x86_amd64
call build.bat
call ..\..\racket.exe csbuild.rkt -- --recurse-submodules --depth=1
..\..\raco.exe pkg install --auto --no-docs racket-test unstable-flonum-lib net-test
- name: Build CS
working-directory: .\racket\src\worksp
if: matrix.mode == 'CS'
shell: cmd
run: |
call msvcprep.bat x86_amd64
call build-cs.bat
- name: Check reported racket version
shell: cmd
run: |
call racket\racket.exe --version
- name: Install Testing Deps
shell: cmd
run: |
call racket\raco.exe pkg install --auto --no-docs racket-test unstable-flonum-lib net-test
- name: Test
shell: cmd
run: |