maybe? #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Insert Data | |
on: | |
push: | |
branches: | |
- deploy | |
jobs: | |
"setup-database": | |
runs-on: cs5500-self-hosted | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: npm install | |
- name: Delete old database | |
run: npm run remove-db.ts -- "mongodb://127.0.0.1:27017/my_library_db" | |
- name: Seed database | |
run: npm run insert-sample-data -- "mongodb://127.0.0.1:27017/my_library_db" |