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
24 changes: 24 additions & 0 deletions .devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"features": {
"ghcr.io/devcontainers/features/copilot-cli:1": {
"version": "1.1.3",
"resolved": "ghcr.io/devcontainers/features/copilot-cli@sha256:e10d091ae7ef9b8d2ed5f601d75f5a090bc04acbac1a26d4cd3c0d5edde4ea10",
"integrity": "sha256:e10d091ae7ef9b8d2ed5f601d75f5a090bc04acbac1a26d4cd3c0d5edde4ea10"
},
"ghcr.io/devcontainers/features/docker-in-docker:4.1.1": {
"version": "4.1.1",
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:2b44bcb32e75d5a3c028479f7f957cf7d5e42d81761373025a8d501dd3748f88",
"integrity": "sha256:2b44bcb32e75d5a3c028479f7f957cf7d5e42d81761373025a8d501dd3748f88"
},
"ghcr.io/devcontainers/features/node:2.1.0": {
"version": "2.1.0",
"resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",
"integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"
},
"ghcr.io/devcontainers/features/ruby:2": {
"version": "2.0.0",
"resolved": "ghcr.io/devcontainers/features/ruby@sha256:31b07475acf72a649c2f323d2ab5c15e1a0c286e7495be822b0850e240a9b5b7",
"integrity": "sha256:31b07475acf72a649c2f323d2ab5c15e1a0c286e7495be822b0850e240a9b5b7"
}
}
}
19 changes: 19 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"image": "mcr.microsoft.com/devcontainers/ruby:trixie",
"features": {
"ghcr.io/devcontainers/features/ruby:2": {
"versionManager": "rbenv" // Options: "none", "rbenv", or "rvm"
},
"ghcr.io/devcontainers/features/docker-in-docker:4.1.1": {
"version": "latest",
"moby": false
},
"ghcr.io/devcontainers/features/node:2.1.0": {
"version": "24"
},
"ghcr.io/devcontainers/features/copilot-cli:1": {}
},
"mounts": [
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
]
}
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
push:
pull_request:

jobs:
test:
strategy:
fail-fast: false
matrix:
ruby: ["3.2"]
rails: ["~> 7.1.0", "~> 7.2.0", "~> 8.0.0", "~> 8.1.0"]
runs-on: ubuntu-latest
env:
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
- run: bundle install --jobs 4 --retry 3
- run: bundle exec ruby -Itest test/rails8_smoke_test.rb
11 changes: 7 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Specify your gem's dependencies in grape_api.gemspec.
gemspec

group :development do
gem 'sqlite3'
rails_version = ENV.fetch("RAILS_VERSION", ">= 7.1")
gem "rails", rails_version

group :development, :test do
gem 'sqlite3', '>= 2.1'
end

# To use a debugger
gem 'byebug', group: [:development, :test]
gem "grape", "~> 1.3"
gem "grape", ">= 2.0", "< 3"
gem "grape_on_rails_routes", "~> 0.3.2"
gem "grape-entity", "~> 0.8.0"
gem "grape-entity", ">= 1.0", "< 2"
Loading
Loading