Skip to content

Commit

Permalink
feat(error): use thiserror for error generation (#140)
Browse files Browse the repository at this point in the history
* chore(dep): upgrade dependencies

* feat(result): use thiserror instead of customized errors

* feat(result): flatten results

* ci(rust): remove --locked

* ci(rust): not running brew update
  • Loading branch information
clearloop authored Dec 19, 2023
1 parent 7ef1693 commit 2f6ef7b
Show file tree
Hide file tree
Showing 18 changed files with 1,244 additions and 1,003 deletions.
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "monthly"
day: "sunday"
commit-message:
prefix: "chore(dep): "
groups:
deps:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
day: "sunday"
commit-message:
prefix: "chore(dep): "
groups:
deps:
patterns:
- "*"
9 changes: 4 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: leetcode-cli

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
Expand All @@ -22,13 +22,12 @@ jobs:
- name: Environment
run: |
if [[ "$(uname)" == 'Darwin' ]]; then
brew update
brew install sqlite3
else
sudo apt-get update -y
sudo apt-get install -y libsqlite3-dev libdbus-1-dev
fi
- name: Build
run: cargo build --release --locked
run: cargo build --release --all-features
- name: Run tests
run: cargo test
run: cargo test --release --all-features
Loading

0 comments on commit 2f6ef7b

Please sign in to comment.