Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: creating queries and features, implementing on expenses, changed clippy allows to expect with reasons #140

Merged
merged 18 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 56 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
build-and-test:
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
- image: cimg/postgres:17.0
environment:
POSTGRES_USER: postgres
steps:
- checkout
- run:
Expand Down Expand Up @@ -52,10 +55,17 @@ jobs:
name: Run tests
command: |
cargo nextest run --no-fail-fast --archive-file nextest-archive.tar.zst
environment:
DATABASE_URL: postgresql://postgres@localhost/circle_test

security:
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
steps:
- checkout
- run:
Expand All @@ -82,6 +92,11 @@ jobs:
format:
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
steps:
- checkout
- run:
Expand All @@ -101,6 +116,11 @@ jobs:
# See: https://circleci.com/docs/configuration-reference/#executor-job
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
# Add steps to the job
# See: https://circleci.com/docs/configuration-reference/#steps
steps:
Expand All @@ -119,6 +139,11 @@ jobs:
doc:
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
steps:
- checkout
- run:
Expand All @@ -134,6 +159,16 @@ jobs:
coverage:
docker:
- image: cimg/rust:1.81.0
environment:
# Fail the build if there are warnings
RUSTFLAGS: "-D warnings"
CARGO_INCREMENTAL: 0
# RUSTC_WRAPPER: "sccache"
- image: cimg/postgres:17.0
environment:
POSTGRES_USER: postgres
environment:
DATABASE_URL: postgresql://postgres@localhost/circle_test
steps:
- checkout
- run:
Expand All @@ -153,6 +188,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: |
Expand Down Expand Up @@ -224,10 +267,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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace
- id: detect-private-key
- repo: https://github.com/crate-ci/typos
rev: v1.24.5
rev: v1.24.6
hooks:
- id: typos
- repo: local
Expand Down

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.

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.

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.

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

This file was deleted.

Loading