diff options
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r-- | .github/workflows/ubuntu.yml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index aae555e..a31078b 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,26 +1,38 @@ -name: ubuntu +name: test on: [push, pull_request] jobs: - build: - runs-on: ubuntu-latest + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby-jruby + min_version: 2.4 + + test: + needs: ruby-versions + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - ruby: [ head, 3.1, "3.0", 2.7, 2.6, 2.5, 2.4 ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + os: [ ubuntu-latest, macos-latest, windows-latest ] + include: + - { os: windows-latest, ruby: ucrt } + - { os: windows-latest, ruby: mingw } + - { os: windows-latest, ruby: mswin } steps: - - name: Install libraries - run: sudo apt install haveged libyaml-dev - uses: actions/checkout@v3 - name: Set up Ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby-pkgs@v1 with: ruby-version: ${{ matrix.ruby }} + apt-get: "haveged libyaml-dev" + brew: libyaml + vcpkg: libyaml - name: Install dependencies - run: bundle install + run: bundle install --jobs 1 - name: Run test run: rake - name: Install gem run: rake install - if: ${{ matrix.ruby != 'head' }} |