-
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Windows CI to Github Actions
I needed to workaround one test because on the Github Actions environment, the test path is not the last feature to have been loaded. The test is only concerned with it having been loaded, no matter in which position, so adapt the assertion.
- Loading branch information
1 parent
24b3313
commit f4d0f35
Showing
3 changed files
with
63 additions
and
60 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' }} |
This file was deleted.
Oops, something went wrong.
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