use semver-compare for CI check for version bump (#171) #559
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
main: | |
name: >- | |
${{ matrix.os }} ${{ matrix.ruby }} | |
runs-on: ${{ matrix.os }}-latest | |
env: | |
# See https://github.com/tmm1/test-queue#environment-variables | |
TEST_QUEUE_WORKERS: 2 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows, macos, ubuntu ] | |
ruby: [ '3.1', '3.2', '3.3', 'head' ] | |
steps: | |
- name: windows misc | |
if: matrix.os == 'windows' | |
run: | | |
# set TMPDIR, git core.autocrlf | |
echo "TMPDIR=$env:RUNNER_TEMP" >> $GITHUB_ENV | |
git config --system core.autocrlf false | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: spec | |
run: bundle exec rspec | |
- name: rubocop | |
run: bundle exec rubocop | |
- name: yalphabetize | |
run: bundle exec yalphabetize |