Skip to content

Commit

Permalink
feat: Add basic functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
JabobKrauskopf committed Jun 20, 2024
1 parent bb5523b commit ac2e38a
Show file tree
Hide file tree
Showing 21 changed files with 5,941 additions and 73 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ insert_final_newline = true
[*.{cfg,toml,rst,rs}]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4
8 changes: 8 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Format Pull Request

on:
push:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml
pull_request:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml

jobs:
format:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Lint Pull Request

on:
push:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml
pull_request:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml

jobs:
lint:
Expand All @@ -15,4 +23,4 @@ jobs:
with:
components: clippy
- name: Lint with clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: make lint
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests

on:
push:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml
pull_request:
branches: [main]
paths:
- src/**
- .github/workflows/test.yml

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@nightly
- name: Run tests
run: make test
- name: Run doc-tests
run: make test-doc
Loading

0 comments on commit ac2e38a

Please sign in to comment.