use shared workflows

This commit is contained in:
geemus 2022-03-13 07:36:55 -05:00
parent 821e83ea64
commit e841a54bbf
2 changed files with 2 additions and 35 deletions

View File

@ -15,23 +15,4 @@ on:
jobs:
test:
continue-on-error: ${{ matrix.ruby-version == '3.0' || matrix.ruby-version == 'head' }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.5', '2.6', '2.7', '3.0', 'head']
steps:
- uses: actions/checkout@v3
- name: Install libcurl dev (for ovirt native extensions)
run: sudo apt-get install libcurl4-openssl-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
uses: fog/.github/.github/workflows/ruby.yml@v1.1.0

View File

@ -6,18 +6,4 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 7
exempt-issue-labels: 'pinned,security'
exempt-pr-labels: 'pinned,security'
stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
uses: fog/.github/.github/workflows/stale.yml@v1.1.0