From d9363b993ee36ab9d6ca1d6e95d5196499d844d5 Mon Sep 17 00:00:00 2001 From: Joey Schoblaska Date: Fri, 17 May 2024 14:10:07 -0500 Subject: [PATCH] use shared config for CD, stale, and triage; update Ruby versions in CI matrix (#94) --- .github/workflows/ci.yml | 8 +------- .github/workflows/stale.yml | 8 ++++++++ .github/workflows/triage.yml | 9 +++++++++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/triage.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e22909..21d610b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,6 @@ on: branches: - main pull_request: - schedule: - - cron: "0 0 * * *" jobs: rspec: @@ -14,13 +12,9 @@ jobs: 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 @@ -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: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..0287d52 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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 diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 0000000..74bb1d9 --- /dev/null +++ b/.github/workflows/triage.yml @@ -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