diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ed5b92b --- /dev/null +++ b/.github/dependabot.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..fb7fcf2 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/src/atom.rs b/src/atom.rs index 5e68888..c2f7705 100644 --- a/src/atom.rs +++ b/src/atom.rs @@ -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()))