2020-10-25 04:56:04 +00:00
|
|
|
# License: LGPL-3.0-or-later
|
|
|
|
name: NOTICE-ruby verification
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- Gemfile
|
|
|
|
- Gemfile.lock
|
|
|
|
- NOTICE-ruby
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- Gemfile
|
|
|
|
- Gemfile.lock
|
|
|
|
- NOTICE-ruby
|
2020-10-25 19:04:10 +00:00
|
|
|
env:
|
|
|
|
os: ubuntu-latest
|
2021-03-01 01:01:11 +00:00
|
|
|
ruby: '2.7.2'
|
2020-10-25 04:56:04 +00:00
|
|
|
jobs:
|
|
|
|
notice_ruby:
|
2020-10-25 19:04:10 +00:00
|
|
|
runs-on: ${{ env.os }}
|
2020-10-25 04:56:04 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-18 17:13:00 +00:00
|
|
|
- uses: ruby/setup-ruby@v1
|
2020-10-25 04:56:04 +00:00
|
|
|
with:
|
2020-10-25 19:04:10 +00:00
|
|
|
ruby-version: ${{ env.ruby }}
|
|
|
|
- uses: actions/cache@v2
|
2020-10-25 04:56:04 +00:00
|
|
|
name: Use Gem cache
|
|
|
|
with:
|
|
|
|
path: vendor/bundle
|
2020-10-25 19:04:10 +00:00
|
|
|
key: bundle-use-ruby-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
2020-10-25 04:56:04 +00:00
|
|
|
restore-keys: |
|
2020-10-25 19:04:10 +00:00
|
|
|
bundle-use-ruby-${{ env.os }}-${{ env.ruby }}-
|
2020-10-25 04:56:04 +00:00
|
|
|
- run: |
|
|
|
|
bundle config deployment true
|
|
|
|
bundle config path vendor/bundle
|
|
|
|
bundle install --jobs 4
|
|
|
|
- name: run notice:ruby:verify
|
|
|
|
run: |
|
|
|
|
bin/rails notice:ruby:verify
|