Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 19 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
name: Test

on:
pull_request:

push:
branches:
- master
pull_request:

jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master

test:
needs: ruby-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.2]
os: [ubuntu-20.04, windows-2022]
include:
- { ruby: 3.1, os: ubuntu-20.04, matrix: pipeline }

runs-on: ${{ matrix.os }}

env:
CI_MATRIX: ${{ matrix.matrix }}
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test things
run: bundle exec rake test manifest:check
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: ${{ matrix.ruby }}
apt-get: "haveged libyaml-dev"
brew: libyaml
vcpkg: libyaml

- name: Test things
run: bundle exec rake test manifest:check