Skip to content

Commit

Permalink
testing new db approach on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Dec 15, 2024
1 parent 3e5f7fa commit 551f7ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 74 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ jobs:
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v3

- uses: actions/checkout@v3
- name: Install sqlx
run: cargo install sqlx-cli --version 0.6.2
- name: Init DB
run: sqlx database create
- name: Run migrations
run: sqlx migrate run
- name: Prepare offline file
run: cargo sqlx prepare
- name: Check offline file
run: cargo prepare --check

- name: Run tests
run: cargo test --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.env
mostro.db*
mostro.log
sqlx-data.json

# IDE's
.idea
Expand Down
73 changes: 0 additions & 73 deletions sqlx-data.json

This file was deleted.

0 comments on commit 551f7ca

Please sign in to comment.