Skip to content

Commit

Permalink
add boilerplate files
Browse files Browse the repository at this point in the history
This commit adds the boilerplate files and fixes the CI workflows.
  • Loading branch information
connortsui20 committed Nov 27, 2024
1 parent 64fdc6b commit 67b5ae8
Show file tree
Hide file tree
Showing 9 changed files with 3,159 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
working-directory: ./optd-persistent
name: check
jobs:
fmt:
Expand Down Expand Up @@ -61,22 +58,6 @@ jobs:
components: clippy
- name: cargo clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
doc:
# run docs generation on nightly rather than stable. This enables features like
# https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html which allows an
# API be documented as only available in some specific platforms.
runs-on: ubuntu-latest
name: nightly / doc
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-docs-rs
uses: dtolnay/install@cargo-docs-rs
- name: cargo docs-rs
run: cargo docs-rs
hack:
# cargo-hack checks combinations of feature flags to ensure that features are all additive
# which is required for feature unification
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
working-directory: ./optd-persistent
name: test
jobs:
required:
Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Contains compiled files and executables.
debug/
target/

# These are backup files generated by rustfmt.
**/*.rs.bk

# Ignore any database files.
**/*.db

# We will check in all code-generated entity files, as newer versions of `sea-orm-cli` might
# conflict with previous versions.
# **/entities
Loading

0 comments on commit 67b5ae8

Please sign in to comment.