Merge pull request #32 from mjblack/registry_spec #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Crystal CI | |
on: | |
workflow_dispatch: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Install Crystal 1.9.2 | |
shell: pwsh | |
run: | | |
(New-Object Net.WebClient).DownloadFile("https://github.com/crystal-lang/crystal/releases/download/1.9.2/crystal-1.9.2-windows-x86_64-msvc-unsupported.exe", "$PWD\crystal-1.9.2-windows-x86_64-msvc-unsupported.exe") | |
$code = Start-Process .\crystal-1.9.2-windows-x86_64-msvc-unsupported.exe -Wait -ArgumentList "/VERYSILENT","/SP-","/SUPPRESSMSGBOXES","/LOG=$PWD\OUTPUT.LOG" -Verb RunAs | |
dir $env:LOCALAPPDATA\Programs\Crystal | |
- name: crystal version | |
shell: pwsh | |
run: | | |
& "$env:LOCALAPPDATA\Programs\Crystal\crystal.exe" version | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
shell: pwsh | |
run: | | |
& "$env:LOCALAPPDATA\Programs\Crystal\shards.exe" install | |
- name: Run tests | |
shell: pwsh | |
run: | | |
& "$env:LOCALAPPDATA\Programs\Crystal\crystal.exe" spec --error-trace --debug |