diff --git a/.github/workflows/jruby.yml b/.github/workflows/jruby.yml deleted file mode 100644 index 121919d..0000000 --- a/.github/workflows/jruby.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: build - -on: - push: - pull_request: - schedule: - - cron: '12 3 * * *' - -jobs: - build: - name: build (${{ matrix.ruby }} / ${{ matrix.os }}) - strategy: - matrix: - ruby: [ 'jruby-9.3' ] - os: [ ubuntu-latest ] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true # 'bundle install' and enable caching - - name: Build - run: bundle exec rake build - - name: Run test - run: bundle exec rake test -# Temporarily skipped until a released version of JRuby support 2.7+ -# - name: Installation test -# run: gem install pkg/*.gem diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ca9a0b..49a9a3b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,10 +14,11 @@ jobs: ruby: [ head, '3.0', '2.7' ] os: [ ubuntu-latest, macos-latest, windows-latest ] exclude: - - { os: windows-latest , ruby: head } + - { os: windows-latest, ruby: head } include: - - { os: windows-latest , ruby: mingw } - - { os: windows-latest , ruby: mswin } + - { os: windows-latest, ruby: mingw } + - { os: windows-latest, ruby: mswin } + - { os: ubuntu-latest, ruby: 'jruby-9.3', bundle: 'bundle exec' } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -25,11 +26,11 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: bundle install + bundler-cache: true # 'bundle install' and enable caching - name: Build - run: rake build + run: ${{matrix.bundle}} rake build - name: Run test - run: rake test + run: ${{matrix.bundle}} rake test - name: Installation test run: gem install pkg/*.gem + if: ${{ !startsWith(matrix.ruby, 'jruby') }}