diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 447cf2c..27d7759 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: cargo install sqlx-cli --no-default-features --features sqlite - - run: cargo sqlx prepare + - run: touch test.db && cargo sqlx migrate run --source src/storage/sqlite/migrations --database-url sqlite://test.db && cargo sqlx prepare --database-url sqlite://test.db - run: cargo clippy --verbose - run: cargo build --verbose - run: cargo test --verbose diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 93252fe..ee65340 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,3 +11,5 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 + env: + SKIP: no-commit-to-branch