Add license-finder check in github CI #2
Workflow file for this run
This file contains hidden or 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: Ruby | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| license_checks: | |
| name: License checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run license checks | |
| run: | | |
| bundle exec license_finder || (cat <<-END && exit 1) | |
| You seem to be introducing a new license into our stack, please reach out to | |
| #licenses-tech-stack on slack to get guidance on the topic. | |
| END | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [3.0, 3.1, 3.2, 3.3, head, truffleruby-head] | |
| env: | |
| RAILS_ENV: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true # bundle installs and caches dependencies | |
| - name: Run tests | |
| run: bundle exec rake --trace |