Add GHA job to test against all iso-10303 schemas #752
Workflow file for this run
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: rake | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'docs/**' | |
- '**.adoc' | |
- '**.md' | |
- .github/workflows/release.yml | |
- .github/workflows/codeql.yml | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' | |
cancel-in-progress: true | |
env: | |
RUBYGEM_VER: 3.4.22 | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Rubocop | |
run: bundle exec rake rubocop | |
rake: | |
name: test on ruby-${{ matrix.ruby }} ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ] | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: | | |
bundle exec rake | |
cat .rspec_status | |
rake-alpine: | |
name: test on ruby-${{ matrix.ruby }} alpine container | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ] | |
container: ruby:${{ matrix.ruby }}-alpine | |
steps: | |
- name: Install packages | |
run: | | |
apk --no-cache --upgrade add build-base git bash tar | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Upgrade RubyGems | |
if: matrix.ruby == '3.0' || matrix.ruby == '2.7' | |
run: gem update --system ${{ env.RUBYGEM_VER }} --no-document | |
- name: Bundle | |
run: | | |
git config --global --add safe.directory $PWD | |
bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: | | |
bundle exec rake | |
cat .rspec_status |