Skip to content

Bump actions/upload-artifact from 6 to 7 #73

Bump actions/upload-artifact from 6 to 7

Bump actions/upload-artifact from 6 to 7 #73

Workflow file for this run

---
name: Unit tests
on:
push:
branches:
- main
pull_request:
branches:
- main
# minimal permissions
permissions:
contents: read
env:
CI: true
jobs:
matrix:
runs-on: ubuntu-24.04
outputs:
ruby: ${{ steps.ruby.outputs.versions }}
steps:
- uses: actions/checkout@v6
- name: Install Ruby 3.4
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
#- name: Run RuboCop
# run: bundle exec rake rubocop
- id: ruby
uses: voxpupuli/ruby-version@v2
linux_unit_tests:
needs: matrix
name: Ruby version
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJSON(needs.matrix.outputs.ruby) }}
runs-on: ubuntu-24.04
steps:
- name: Checkout current PR
uses: actions/checkout@v6
- name: Install Ruby ${{ matrix.cfg.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Display bundle environment
run: |
bundle env
- run: bundle exec rake spec_random
tests:
needs:
- matrix
- linux_unit_tests
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed