diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e33c14fc..99d79eca 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -28,9 +28,8 @@ }, // Use 'forwardPorts' to make a list of ports inside the container available locally. - "forwardPorts": [ - 3009 - ], + // "forwardPorts": [ + // ], // Uncomment the next line if you want start specific services in your Docker Compose config. // "runServices": [], @@ -73,9 +72,6 @@ "terminal.integrated.defaultProfile.linux": "zsh", "editor.codeActionsOnSave": { "source.fixAll": "explicit" - }, - "rubyLsp.enabledFeatures": { - "diagnostics": true } } } diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index c43b9d2c..c9f57f1b 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -11,4 +11,5 @@ services: - node_modules:/app/node_modules volumes: - node_modules: null + node_modules: + postgres_data: diff --git a/.env.example b/.env.example index 173e415e..bfca76fe 100644 --- a/.env.example +++ b/.env.example @@ -9,6 +9,7 @@ AWS_SECRET_ACCESS_KEY=changeme GITHUB_WEBHOOK_SECRET=test_token GITHUB_WEBHOOK_REF="refs/heads/draft" +# GITHUB_AUTH_TOKEN="" # Only needed if testing editor builds with Github Api POSTGRES_HOST=db POSTGRES_PASSWORD=password diff --git a/Dockerfile b/Dockerfile index 5de43011..fff15db9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,11 +31,11 @@ FROM builder AS dev-container RUN apt-get update \ && apt-get install --yes --no-install-recommends sudo git vim zsh ssh curl less RUN sh -c "$(curl -L https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \ - -t robbyrussell \ - -p git -p docker-compose -p yarn \ - -p https://github.com/zsh-users/zsh-autosuggestions \ - # -p https://github.com/marlonrichert/zsh-autocomplete \ - -p https://github.com/unixorn/fzf-zsh-plugin + -t robbyrussell \ + -p git -p docker-compose -p yarn \ + -p https://github.com/zsh-users/zsh-autosuggestions \ + -p https://github.com/marlonrichert/zsh-autocomplete \ + -p https://github.com/unixorn/fzf-zsh-plugin RUN chsh -s $(which zsh) ${USER} # Slim application image without development dependencies diff --git a/Gemfile b/Gemfile index 85dcad2b..66d636a8 100644 --- a/Gemfile +++ b/Gemfile @@ -57,7 +57,7 @@ end group :development do gem 'awesome_print' gem 'rails-erd' - gem 'ruby-lsp', '~> 0.17.7' + gem 'ruby-lsp' gem 'ruby-lsp-rails' gem 'ruby-lsp-rspec' end diff --git a/Gemfile.lock b/Gemfile.lock index fb8f24d9..12697c1b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -236,8 +236,8 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - language_server-protocol (3.17.0.3) - logger (1.6.0) + language_server-protocol (3.17.0.4) + logger (1.6.6) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -304,7 +304,7 @@ GEM postmark-rails (0.22.1) actionmailer (>= 3.0.0) postmark (>= 1.21.3, < 2.0) - prism (0.30.0) + prism (1.3.0) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) @@ -367,7 +367,7 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.2.1) - rbs (3.5.2) + rbs (3.8.1) logger rdoc (6.7.0) psych (>= 4.0.0) @@ -426,15 +426,15 @@ GEM rubocop-capybara (~> 2.17) ruby-graphviz (1.2.5) rexml - ruby-lsp (0.17.7) + ruby-lsp (0.23.11) language_server-protocol (~> 3.17.0) - prism (>= 0.29.0, < 0.31) + prism (>= 1.2, < 2.0) rbs (>= 3, < 4) sorbet-runtime (>= 0.5.10782) - ruby-lsp-rails (0.3.10) - ruby-lsp (>= 0.17.2, < 0.18.0) - ruby-lsp-rspec (0.1.12) - ruby-lsp (~> 0.17.0) + ruby-lsp-rails (0.4.0) + ruby-lsp (>= 0.23.0, < 0.24.0) + ruby-lsp-rspec (0.1.22) + ruby-lsp (~> 0.23.0) ruby-progressbar (1.11.0) ruby-vips (2.2.0) ffi (~> 1.12) @@ -473,7 +473,7 @@ GEM snaky_hash (2.0.1) hashie version_gem (~> 1.1, >= 1.1.1) - sorbet-runtime (0.5.11481) + sorbet-runtime (0.5.11856) sprockets (4.2.0) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) @@ -565,7 +565,7 @@ DEPENDENCIES rubocop-graphql rubocop-rails rubocop-rspec - ruby-lsp (~> 0.17.7) + ruby-lsp ruby-lsp-rails ruby-lsp-rspec scout_apm diff --git a/docker-compose.yml b/docker-compose.yml index 3ab356b1..85fd0eef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,6 +43,8 @@ services: image: deltaprojects/smee-client platform: linux/amd64 command: -u $SMEE_TUNNEL -t http://api:3009/github_webhooks + environment: + - SMEE_TUNNEL volumes: postgres-data: