Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Sep 11, 2024
1 parent dc662aa commit 12d421e
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
- package-ecosystem: cargo
directory: /
schedule:
interval: daily
groups:
all:
patterns:
- "*"
ignore:
# For now we use dependabot to notify us only about major library updates
- dependency-name: "*"
update-types:
- "version-update:semver-patch"
- "version-update:semver-minor"
37 changes: 37 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build
on:
push:
paths-ignore:
- "**.md"
# manual trigger
workflow_dispatch: {}
env:
RUST_BACKTRACE: "1"
jobs:
lint_code:
name: Lint / Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -D warnings

test_linux:
name: Test / Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo test --verbose
2 changes: 1 addition & 1 deletion src/atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ mod tests {
let result = encode_primitive_dyn(&values, 0);
assert_eq!(result, BytesText::new("1"));

let values = vec![chrono::DateTime::from_timestamp_millis(1726012800000).unwrap()];
let values = [chrono::DateTime::from_timestamp_millis(1726012800000).unwrap()];
let values: Date64Array = values
.iter()
.map(|d| Date64Type::from_naive_date(d.date_naive()))
Expand Down

0 comments on commit 12d421e

Please sign in to comment.