Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Nov 29, 2023
0 parents commit c5a1501
Show file tree
Hide file tree
Showing 14 changed files with 1,004 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build, Lint and Test

on:
push:
branches: [ main ]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --workspace --verbose

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Lint
run: |
rustfmt ./**/*.rs
if ! git diff --exit-code; then
echo "Please run 'rustfmt --check ./**/*.rs' to lint your code."
exit 1
fi
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Text
run: cargo test --workspace
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
.DS_Store
.vscode
.idea
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hard_tabs = false
tab_spaces = 2
Loading

0 comments on commit c5a1501

Please sign in to comment.