Add set_job_tags support for better job logs #27
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: PR Checks | |
on: | |
pull_request | |
jobs: | |
run-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.1', '3.2', '3.3'] | |
gemfile: ['Gemfile', 'Gemfile.oldgems', 'Gemfile.sentry'] | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
steps: | |
- name: Checks out repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get -yqq install libpq-dev | |
gem install bundler -v '2.1.2' | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Run rubocop | |
run: bundle exec rubocop | |
- name: Run specs | |
run: bundle exec rspec spec/ | |