Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate windows CI to Github Actions #662

Merged
merged 5 commits into from Apr 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/windows.yml
@@ -0,0 +1,62 @@
---

name: windows

on:
pull_request:

push:
branches:
- master

jobs:
test:
runs-on: windows-2019

strategy:
matrix:
version: [2.4.9, 2.5.7, 2.6.5, head]

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: .bundle
key: gems-${{ hashFiles('**/Gemfile.lock') }}

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version }}

- name: Clone patched rb-readline
shell: cmd
run: git clone -q --depth=5 --no-tags --branch=byebug https://github.com/deivid-rodriguez/rb-readline.git C:\rb-readline

- name: Install patched rb-readline
run: |
$env:n_dir = (&ruby.exe -e "puts RbConfig::CONFIG['sitelibdir']" | Out-String).Trim()
Copy-Item -Path C:\rb-readline\lib\readline.rb -Destination $env:n_dir\readline.rb
Copy-Item -Path C:\rb-readline\lib\rbreadline.rb -Destination $env:n_dir\rbreadline.rb

- name: Display environment information
shell: cmd
run: |
echo %PATH%

ruby --version
where ruby

gem --version
where gem

bash --version
where bash

- name: Setup dependencies
shell: bash
run: bin/setup.sh

- name: Run tests
run: ruby bin/rake compile test
continue-on-error: ${{ matrix.version == 'head' }}
62 changes: 0 additions & 62 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions test/runner_against_valid_program_test.rb
Expand Up @@ -84,10 +84,10 @@ def test_run_with_require_flag
stdout = run_byebug(
"-r", example_path, example_path,
input: \
"puts \"Abbrev loaded? \#{$LOADED_FEATURES.last == '#{example_path}'}\""
"puts \"Example path loaded? \#{$LOADED_FEATURES.include?('#{example_path}')}\""
)

assert_match(/Abbrev loaded\? true/, stdout)
assert_match(/Example path loaded\? true/, stdout)
end

def test_run_with_a_single_include_flag
Expand Down