38 lines
954 B
YAML
38 lines
954 B
YAML
# 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
|
|
env:
|
|
os: ubuntu-latest
|
|
ruby: 2.6.6
|
|
jobs:
|
|
notice_ruby:
|
|
runs-on: ${{ env.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ env.ruby }}
|
|
- uses: actions/cache@v2
|
|
name: Use Gem cache
|
|
with:
|
|
path: vendor/bundle
|
|
key: bundle-use-ruby-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
bundle-use-ruby-${{ env.os }}-${{ env.ruby }}-
|
|
- 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
|