blob: 5a810a1413a4f788405c87792c2ddc56d15b5040 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
name: CI
on: [push, pull_request]
jobs:
activate:
runs-on: ubuntu-latest
if: "! endsWith(github.event.head_commit.message, '[skip ci]')"
steps:
- run: echo ok go
build:
needs: activate
runs-on: windows-latest
strategy:
matrix:
ruby: [jruby, '2.7', '2.6', '2.5']
env:
PYGMENTS_VERSION: '~> 1.2.0'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Configure Bundler
run: |
bundle config --local path .bundle/gems
bundle config --local without docs lint coverage
- name: Install dependencies
run: |
# Prevent use of non-default value (Stop) by GitHub Actions, which can terminate step
# see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-7#erroractionpreference
$ErrorActionPreference = 'Continue'
bundle --jobs 3 --retry 3
- name: Test
run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec
|