Skip to content

Commit

Permalink
feat: location rendering and improvements (#8)
Browse files Browse the repository at this point in the history
The project updates focus on enhancing code quality, expanding functionality, refining data structures and drawing on Canvas functionality. Notable changes include integrating new benchmarking capabilities, refining geographic data handling, and updating API endpoints to reflect these changes. The adjustments in serialization and error handling across various modules aim to improve performance and maintainability.
Finally, this update draws each oblast's borders & prints icons using Context in Map component
  • Loading branch information
voznik authored May 12, 2024
1 parent 7777f99 commit 09cdb0c
Show file tree
Hide file tree
Showing 44 changed files with 2,251 additions and 1,242 deletions.
Empty file added .coverage/.gitkeep
Empty file.
74 changes: 0 additions & 74 deletions .github/workflows/build.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
coverage:
name: Evaluate code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
channel: nightly
components: clippy, llvm-tools-preview
bins: cargo-codspeed, cargo-sonar, cargo-llvm-cov

- name: Run Clippy
run: |
cargo clippy --message-format json > clippy-report.json
cargo sonar --clippy --clippy-path clippy-report.json
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path .coverage/lcov.info

- name: Coveralls
if: ${{ success() }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: .coverage/lcov.info

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.externalIssuesReportPaths=sonar-issues.json
-Dcommunity.rust.lcov.reportPaths=.coverage/lcov.info
- name: Build the benchmark target(s)
run: cargo codspeed build

- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ rust-project.json

### Local
tmp/
assets/*.sqlite
.coverage/

# End of https://www.toptal.com/developers/gitignore/api/rust,rust-analyzer,visualstudiocode,dotenv
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/doublify/pre-commit-rust
rev: master
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"./Cargo.toml",
],
"rust-analyzer.showUnlinkedFileNotification": false,
// "rust-analyzer.cargo.autoreload": false,
// "rust-analyzer.numThreads": 2,
// "rust-analyzer.debug.engine": "vadimcn.vscode-lldb",
"lldb.displayFormat": "auto",
"lldb.showDisassembly": "auto",
"lldb.dereferencePointers": true,
"lldb.consoleMode": "evaluate"
"lldb.consoleMode": "evaluate",
}
Loading

0 comments on commit 09cdb0c

Please sign in to comment.