-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage-sqlite): update storage with sqlite & prisma (#97)
Co-authored-by: Rémi Roycourt <[email protected]>
- Loading branch information
Showing
22 changed files
with
4,161 additions
and
437 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[alias] | ||
prisma = "run -p ark-prisma-cli --" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
|
||
check: | ||
needs: setup | ||
name: Check | ||
|
@@ -34,6 +34,13 @@ jobs: | |
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Prisma generate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: prisma | ||
args: generate | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -42,18 +49,23 @@ jobs: | |
codecoverage: | ||
if: github.event_name == 'pull_request' | ||
needs: check | ||
name: Test | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Prisma generate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: prisma | ||
args: generate | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.15.0' | ||
args: '-- --test-threads 1' | ||
version: "0.15.0" | ||
args: "-- --test-threads 1" | ||
- name: Upload to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
|
@@ -73,6 +85,13 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Prisma generate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: prisma | ||
args: generate | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -95,11 +114,19 @@ jobs: | |
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Prisma generate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: prisma | ||
args: generate | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ crates/ark-metadata/images/**/* | |
|
||
.env | ||
.aws | ||
|
||
# Prisma | ||
crates/ark-storage/src/prisma.rs | ||
*/dev.db |
Oops, something went wrong.