Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

permissions: {}

jobs:
build:
timeout-minutes: 10
Expand All @@ -27,6 +29,8 @@ jobs:
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@c515ec17f69368147deb311832da000dd229d338 # v1
with:
Expand Down Expand Up @@ -56,11 +60,15 @@ jobs:
lint:
timeout-minutes: 10
name: lint
permissions:
contents: read
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@c515ec17f69368147deb311832da000dd229d338 # v1
with:
Expand All @@ -73,6 +81,8 @@ jobs:
test-ruby:
timeout-minutes: 10
name: test (ruby ${{ matrix.ruby-version }})
permissions:
contents: read
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
strategy:
Expand All @@ -81,6 +91,8 @@ jobs:
ruby-version: ['3.2', '3.3', '3.4', '4.0']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@c515ec17f69368147deb311832da000dd229d338 # v1
with:
Expand All @@ -95,6 +107,7 @@ jobs:
name: test
needs: test-ruby
if: ${{ always() && needs.test-ruby.result != 'skipped' }}
permissions: {}
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- if: ${{ needs.test-ruby.result == 'failure' || needs.test-ruby.result == 'cancelled' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
default: false
type: boolean

permissions: {}

jobs:
release:
name: release
Expand Down