2021-10-27 21:55:11 +02:00
|
|
|
name: create-sqlite-base
|
2021-12-21 05:04:41 +01:00
|
|
|
|
2021-10-27 21:55:11 +02:00
|
|
|
on:
|
|
|
|
push:
|
2021-12-21 05:04:41 +01:00
|
|
|
branches:
|
|
|
|
- master
|
2021-10-27 21:55:11 +02:00
|
|
|
paths:
|
|
|
|
- databases/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
make-base-db:
|
2021-12-21 05:04:41 +01:00
|
|
|
name: Generate SQLite base .db
|
2021-10-27 21:55:11 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-12-21 05:04:41 +01:00
|
|
|
|
2021-10-27 21:55:11 +02:00
|
|
|
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
|