-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update github actions to use shared config (#23)
* update github actions to use shared config * update rubocop * update target ruby version and gemspec dev dependency cop * only run ci on pull requests and pushes to main * inherit secrets in CI config
- Loading branch information
1 parent
9b09e8b
commit 71336be
Showing
6 changed files
with
51 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
rspec: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- 2.7 | ||
# 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' | ||
- 3.1 | ||
- 3.2 | ||
- 3.3 | ||
- head | ||
env: | ||
BUNDLE_GEMFILE: Gemfile | ||
name: "RSpec tests: Ruby ${{ matrix.ruby }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby ${{ matrix.ruby }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: Run tests | ||
run: bundle exec rspec | ||
static_type_check: | ||
name: "Type Check" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: head | ||
- name: Run static type checks | ||
run: bundle exec srb tc | ||
call-workflow-from-shared-config: | ||
uses: rubyatscale/shared-config/.github/workflows/ci.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters