name: ubuntu on: [push, pull_request] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby: [ head, 3.1, "3.0", 2.7, 2.6, 2.5, 2.4 ] steps: - name: Install libraries run: sudo apt install haveged libyaml-dev - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies run: bundle install - name: Run test run: rake - name: Install gem run: rake install if: ${{ matrix.ruby != 'head' }}