Skip to content

Commit

Permalink
fix mongoimport on github-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chikamura committed Dec 3, 2024
1 parent 9f611a9 commit 4018e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Build a gem
run: ./gradlew gem
- name: Mongo DB
run: mongoimport --host 127.0.0.1 -u mongo_user -p dbpass --db $MONGO_DATABASE --collection $MONGO_COLLECTION --type json --drop src/test/resources/my_collection.jsonl
run: docker compose exec mongodb mongoimport --host 127.0.0.1 -u mongo_user -p dbpass --db $MONGO_DATABASE --collection $MONGO_COLLECTION --type json --drop src/test/resources/my_collection.jsonl
- run: ~/.embulk/bin/embulk run -L build/gemContents src/test/resources/basic.yml
- run: cat tmp/basic000.00.csv
- run: cmp tmp/basic000.00.csv src/test/resources/basic_expected.csv
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
volumes:
- mongodb-data:/data/db
- mongodb-configdb:/data/configdb
- ./src:/src

mongo-express:
container_name: mongo-express
Expand Down

0 comments on commit 4018e09

Please sign in to comment.