Skip to content

Commit

Permalink
add git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm committed Mar 7, 2024
1 parent 9ddd99c commit e2f3418
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# git add --renormalize .
#
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
#
# LFS can be used as well
#
# *.zip filter=lfs diff=lfs merge=lfs -text
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
# ignore:
# - dependency-name: "arrow"
# group of dependencies to be updated together
groups:
# all datafusion deps should be updated together
datafusion-dependencies:
# A pattern can be...
patterns:
- "datafusion*"
- "datafusion-*"
47 changes: 47 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Basic Flow

on:
push:
branches: [master]
paths-ignore:
- "**.md"
- "**.yaml"
pull_request:
branches: [master]
paths-ignore:
- "**.md"
- "**.yaml"

env:
CARGO_TERM_COLOR: always
# this one speeds up builds, they say
CARGO_INCREMENTAL: 0

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
# make cargo format to fail first
# before bringing other things, and spending time
# compiling
- name: Cargo Format Check
run: cargo fmt --all --check --
# we use cache if format is correct
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Cargo Compile (with tests)
# should be faster than compiling tests again in
# test phase
# run: cargo test --no-run --locked --all-features
run: cargo test --no-run --all-features
- name: Cargo Run Tests
run: cargo test -- --nocapture --quiet

0 comments on commit e2f3418

Please sign in to comment.