-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: location rendering and improvements (#8)
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
Showing
44 changed files
with
2,251 additions
and
1,242 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.