Skip to content

Commit

Permalink
Add VSCode Dev Container related configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Nov 21, 2023
1 parent 70a8851 commit 6f349d5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
{
"name": "Ruby",
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.2-bookworm",
"customizations": {
"vscode": {
"extensions": [
"Shopify.ruby-extensions-pack"
]
}
},
"postCreateCommand": "bundle install"
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run tests",
"type": "shell",
"command": "if [[ -n $(git status -s) ]]; then echo \"Error: There are uncommitted files, please commit or discard the changes before executing this command.\"; exit 1; fi && rm -fr spec/output && bundle exec rspec && git add spec/output && git status && git diff --staged --exit-code -- spec/output || (echo \"Test outputs contain changes. Run 'make' locally and check that the changes are desired. If they're desired, commit them as part of the change.\" && exit 1)",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}

0 comments on commit 6f349d5

Please sign in to comment.