Skip to content

Enforce the use of semver tags on PRs #19

Enforce the use of semver tags on PRs

Enforce the use of semver tags on PRs #19

name: CI Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
continue-on-error: ${{ matrix.experimental == 'Yes' }}
strategy:
matrix:
ruby: ["3.1", "3.2", "3.3", head]
operating-system: [ubuntu-latest]
experimental: [No]
include:
- ruby: "3.1"
operating-system: windows-latest
- ruby: head
operating-system: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run rake
run: bundle exec rake
coverage:
needs: [build]
runs-on: ubuntu-latest
name: Report test coverage to CodeClimate
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run tests
run: bundle exec rake spec
- name: Report test coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 59b5645f30f1d2737a5811628e315c026c5ea2aeced2d77dae4b7b394a85e966
with:
coverageLocations: ${{github.workspace}}/coverage/lcov/*.lcov:lcov