Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
# ubuntu-latest is now ubuntu-26.04, which has no prebuilt Ruby 3.0 or 3.1.
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
# ubuntu-latest is now ubuntu-26.04, which has no prebuilt Ruby 3.0 or 3.1.
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
uses: ruby/setup-ruby@e81a8fa391b11a595c1b7ed84177cc0fe02faf83 # v1.328.0
with:
ruby-version: 3.0
ruby-version: '3.0'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Generate docs
run: bundle exec rubocop --config .rubocop.yml
20 changes: 11 additions & 9 deletions .github/workflows/sdk-reference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
docs:
runs-on: ubuntu-latest
# ubuntu-latest is now ubuntu-26.04, which has no prebuilt Ruby 3.0 or 3.1.
runs-on: ubuntu-24.04
environment:
name: sdk-reference
url: ${{ steps.deploy.outputs.url }}
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
uses: ruby/setup-ruby@e81a8fa391b11a595c1b7ed84177cc0fe02faf83 # v1.328.0
with:
ruby-version: 3.0
ruby-version: '3.0'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Generate documentation
run: bundle exec yard
Expand All @@ -34,12 +38,10 @@ jobs:
echo "CLOUDFLARE_BRANCH=$BRANCH" >> "$GITHUB_ENV"
fi
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
# cloudflare/pages-action no longer exists; wrangler-action is its replacement.
uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3
id: deploy
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: nylas-ruby-sdk-reference
directory: doc
wranglerVersion: "3"
branch: ${{ env.CLOUDFLARE_BRANCH }}
command: pages deploy doc --project-name=nylas-ruby-sdk-reference --branch=${{ env.CLOUDFLARE_BRANCH }}
Loading