diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebca0f5..94cbe9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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