Skip to content

Commit

Permalink
Ensure DB directory exists before creating files
Browse files Browse the repository at this point in the history
Updated the workflow script to create the database directory if it doesn't exist before creating the database files. This prevents potential errors during CI runs due to missing directories.
  • Loading branch information
eliasjpr committed Aug 12, 2024
1 parent 6c4ca65 commit 925e1e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ jobs:
run: sqlite3 --version
- name: Create Sqlite databases
run: |
touch spec/db/northwind.db
touch spec/db/data.db
touch spec/db/billing.db
mkdir -p ./spec/db
touch ./spec/db/northwind.db
touch ./spec/db/data.db
touch ./spec/db/billing.db
- name: Install dependencies
run: shards install
- name: Check code style
Expand Down

0 comments on commit 925e1e6

Please sign in to comment.