Skip to content

Commit

Permalink
feat(platform)!: migrate from SQLite to PostgreSQL as the main database
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Mar 30, 2024
1 parent 02bd140 commit 6c73226
Show file tree
Hide file tree
Showing 202 changed files with 4,084 additions and 5,707 deletions.
11 changes: 8 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
.github
target
tools/api
LICENSE
*.md

.data
.env
.github
.gitignore

LICENSE
*.md

*.json

secutils.toml
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,33 @@ on:
paths-ignore:
- 'tools/**'
- 'Dockerfile'
- 'Dockerfile.aarch64-unknown-linux-musl'
- 'LICENSE'
- '*.md'
- '.husky/**'
- '*.json'

env:
CARGO_TERM_COLOR: always
DATABASE_URL: sqlite:https://${{ github.workspace }}/ci-sqlx.db
DATABASE_URL: postgres:https://postgres:password@localhost:5432/secutils

jobs:
ci:
name: Build (Linux)
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
rust: [ stable ]
services:
postgres:
image: postgres:latest
env:
POSTGRES_PASSWORD: password
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
name: Checkout
with:
submodules: recursive

# Always install nightly toolchain for `Rustfmt`.
- name: Install toolchain ${{ matrix.rust }}
Expand All @@ -40,7 +46,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Check format
run: cargo +nightly fmt --all -- --check
run: cargo +nightly fmt --all -- --check

- name: Check database schema
run: |
Expand All @@ -50,7 +56,7 @@ jobs:
cargo sqlx prepare --check
- name: Test (default features)
run: cargo test
run: cargo test

- name: Build (default features)
run: cargo build --release
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules/
target/

.data/
.idea/
.env

Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6c73226

Please sign in to comment.