Skip to content

Commit

Permalink
Merge pull request #23 from SINTEF/sprint-antoine
Browse files Browse the repository at this point in the history
Sprint Antoine #1
  • Loading branch information
fungiboletus authored Feb 26, 2024
2 parents 5a5cdba + f7666ba commit 65afe32
Show file tree
Hide file tree
Showing 64 changed files with 11,954 additions and 32 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
#- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: rustup toolchain install stable --profile minimal --component clippy llvm-tools-preview --no-self-update
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
- run: cargo install sqlx-cli --no-default-features --features sqlite
- 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 llvm-cov --verbose --lcov --output-path lcov.info
- uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: lcov.info
min_coverage: 30
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
env:
SKIP: no-commit-to-branch
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# For code coverage
coverage/

.sqlx/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"matklad.rust-analyzer",
"serayuzgur.crates",
"EditorConfig.EditorConfig",
"bungcip.better-toml",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb",
"usernamehw.errorlens"
],
Expand Down
Loading

0 comments on commit 65afe32

Please sign in to comment.