Skip to content

Commit

Permalink
use shared config for CD, stale, and triage; update Ruby versions in …
Browse files Browse the repository at this point in the history
…CI matrix (#94)
  • Loading branch information
schoblaska authored May 17, 2024
1 parent 825e6b4 commit d9363b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ on:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
# See comment comes from https://github.com/ruby/setup-ruby#matrix-of-ruby-versions
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
- "3.0.6"
- 3.1
- 3.2
- 3.3
- head
rails:
- "7.0"
- 6.1
Expand Down Expand Up @@ -48,7 +42,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: head
ruby-version: 3.3
- name: Run static type checks
run: bundle exec srb tc
notify_on_failure:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: 'Close stale issues and PRs'

on:
schedule:
- cron: '0 0 * * *'
jobs:
call-workflow-from-shared-config:
uses: rubyatscale/shared-config/.github/workflows/stale.yml@main
9 changes: 9 additions & 0 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Label issues as "triage"

on:
issues:
types:
- opened
jobs:
call-workflow-from-shared-config:
uses: rubyatscale/shared-config/.github/workflows/triage.yml@main

0 comments on commit d9363b9

Please sign in to comment.