Skip to content

Commit

Permalink
Merge pull request #275 from fog/reusable-workflows
Browse files Browse the repository at this point in the history
utilize reusable actions workflows
  • Loading branch information
geemus committed Jan 23, 2022
2 parents 940897c + 147afc3 commit 1f01963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,5 @@ on:

jobs:
test:

continue-on-error: ${{ matrix.ruby-version == 'head' }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', 'truffleruby-head', 'head']

steps:
- uses: actions/checkout@v2.4.0
- 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.0.0
17 changes: 2 additions & 15 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,5 @@ 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.0.0

0 comments on commit 1f01963

Please sign in to comment.