Skip to content

Commit

Permalink
Add a test script
Browse files Browse the repository at this point in the history
  • Loading branch information
carlotm committed Jan 31, 2025
1 parent 75ae09e commit 8bcccf5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test the debox solr plugin
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jetify-com/[email protected]
with:
project-path: './test'
- name: Run the test script
working-directory: test
run: devbox run test
25 changes: 25 additions & 0 deletions test/devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json",
"packages": ["exa@2023-03-01"],
"include": ["github:carlotm/devbox-solr"],
"env": {
"MICCHECK": "one_two_one_two"
},
"shell": {
"scripts": {
"test": [
"which solr curl exa",
"test -f .devbox/virtenv/carlotm.devbox-solr.solr/process-compose.yaml",
"test -f .devbox/virtenv/carlotm.devbox-solr.solr/data/solr.xml",
"test -d .devbox/virtenv/carlotm.devbox-solr.solr/logs",
"test -d .devbox/virtenv/carlotm.devbox-solr.solr/pid",
"test $SOLR_LOGS_DIR = $(pwd)/.devbox/virtenv/carlotm.devbox-solr.solr/logs",
"test $SOLR_PID_DIR = $(pwd)/.devbox/virtenv/carlotm.devbox-solr.solr/pid",
"test $SOLR_HOME = $(pwd)/.devbox/virtenv/carlotm.devbox-solr.solr/data",
"test $SOLR_PORT = 8983",
"test $SOLR_ENV = dev,label=MyDev,color=blue",
"test $MICCHECK = one_two_one_two"
]
}
}
}

0 comments on commit 8bcccf5

Please sign in to comment.