Merge pull request #397 from mchangrh/base-sqlite-ci

add generate-sqlite-base
This commit is contained in:
Ajay Ramachandran 2021-10-30 21:50:55 -04:00 committed by GitHub
commit 0c16448065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
name: create-sqlite-base
on:
push:
paths:
- databases/**
jobs:
make-base-db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- name: Set config
run: |
echo '{"mode": "init-db-and-exit"}' > config.json
- name: Run Server
timeout-minutes: 10
run: npm start
- uses: actions/upload-artifact@v2
with:
name: SponsorTimesDB.db
path: databases/sponsorTimes.db