remove LOAD_PATH anti-pattern #12
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: | |
branches: | |
- main | |
jobs: | |
rubocop: | |
name: RuboCop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Ruby and install rubocop | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: Run rubocop | |
run: bin/rubocop --parallel | |
tests: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby and install gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake test | |
features: | |
name: ${{ format('Features (Ruby {0})', matrix.ruby-version) }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby and install gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Set up imagemagick | |
uses: mfinelli/setup-imagemagick@v5 | |
with: | |
cache: true | |
- name: Set up ffmpeg | |
uses: FedericoCarboni/setup-ffmpeg@v3 | |
- name: Set up mplayer | |
run: sudo apt-get install -y mplayer | |
- name: Configure Git | |
run: | | |
git config --global user.name $NAME | |
git config --global user.email $EMAIL | |
env: | |
NAME: "George Costanza" | |
EMAIL: "george.costanza@vandelay.com" | |
- name: Run features | |
run: bin/cucumber --publish-quiet -f progress |