diff --git a/.circleci/config.yml b/.circleci/config.yml index 02e2317..6a0672b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -139,6 +139,8 @@ jobs: coverage: docker: - image: cimg/rust:1.81.0 + environment: + DATABASE_URL: postgresql://postgres@localhost/circle_test steps: - checkout - run: @@ -158,6 +160,14 @@ jobs: name: Install nextest command: | curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin + - run: + name: Install sqlx-cli + command: cargo install sqlx-cli + - run: + name: Database setup + command: | + sqlx database create + sqlx migrate run - run: name: Setup test.env command: | @@ -167,8 +177,6 @@ jobs: name: Running code coverage command: | rustup run nightly cargo llvm-cov nextest --locked --all-features --lcov --output-path lcov.info - environment: - DATABASE_URL: postgresql://postgres@localhost/circle_test - codecov/upload: file: "./lcov.info" # token: $CODECOV_TOKEN already default @@ -231,10 +239,11 @@ workflows: filters: tags: only: /.*/ - - shuttle-deploy: - requires: - - doc - - coverage - filters: - branches: - only: main +# skipping auto deploy for now +# - shuttle-deploy: +# requires: +# - doc +# - coverage +# filters: +# branches: +# only: main diff --git a/flake.nix b/flake.nix index 2609633..b96db79 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,7 @@ buildInputs = [ bacon cargo-expand + cargo-llvm-cov cargo-nextest cargo-watch jq