diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2023-09-01 00:00:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2023-09-13 09:24:49 +0000 |
| commit | 6423baebd92e45c9be85157c443dff42e65d8d14 (patch) | |
| tree | 6548edfd80d0cd9d1267378ebe816ec95e394137 /.github/workflows/check_test_rustfmt_clippy.yaml | |
| parent | 5c5feaa732363e32e2a980a887fa42b4394b1a5e (diff) | |
refactor: rebuild app skeleton
Create skeleton for a complete rebuild of the prototype as a production
ready product.
Includes design patterns for:
- dependency injection
- unit testing with dependency mocking
- integration testing
- error handling
- config storage
BREAKING-CHANGE: ground-up redesign with incompatible protocol standards
Diffstat (limited to '.github/workflows/check_test_rustfmt_clippy.yaml')
| -rw-r--r-- | .github/workflows/check_test_rustfmt_clippy.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/check_test_rustfmt_clippy.yaml b/.github/workflows/check_test_rustfmt_clippy.yaml new file mode 100644 index 0000000..9cb63c1 --- /dev/null +++ b/.github/workflows/check_test_rustfmt_clippy.yaml | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | on: push | ||
| 2 | |||
| 3 | name: check test rustfmt clippy | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | ci: | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | strategy: | ||
| 9 | matrix: | ||
| 10 | rust: | ||
| 11 | - stable | ||
| 12 | - nightly | ||
| 13 | |||
| 14 | steps: | ||
| 15 | - uses: actions/checkout@v2 | ||
| 16 | |||
| 17 | - uses: actions-rs/toolchain@v1 | ||
| 18 | with: | ||
| 19 | profile: minimal | ||
| 20 | toolchain: ${{ matrix.rust }} | ||
| 21 | override: true | ||
| 22 | components: rustfmt, clippy | ||
| 23 | |||
| 24 | - uses: actions-rs/cargo@v1 | ||
| 25 | with: | ||
| 26 | command: build | ||
| 27 | |||
| 28 | - uses: actions-rs/cargo@v1 | ||
| 29 | with: | ||
| 30 | command: test | ||
| 31 | |||
| 32 | - uses: actions-rs/cargo@v1 | ||
| 33 | with: | ||
| 34 | command: fmt | ||
| 35 | args: --all -- --check | ||
| 36 | |||
| 37 | - uses: actions-rs/cargo@v1 | ||
| 38 | with: | ||
| 39 | command: clippy | ||
| 40 | args: -- -D warnings | ||