- add cargo fmt / clippy to actions build. - add common unit tests. -
Build and Deploy to K3s / test (push) Successful in 2m40s
Build and Deploy to K3s / lint (push) Successful in 1m33s
Build and Deploy to K3s / build-and-push (push) Successful in 5m17s
Build and Deploy to K3s / deploy (push) Successful in 9s

improved security sanitization - security spcecific unit tests - add
unit tests to workflow build - add unami analytics.
This commit is contained in:
2025-11-30 01:37:07 -08:00
parent 9fb9d9ab50
commit 850cf32b50
15 changed files with 2678 additions and 40 deletions
+31
View File
@@ -15,7 +15,38 @@ env:
IMAGE_NAME: jason/socktop-webterm
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run tests
run: cargo test --all-targets --all-features
lint:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
build-and-push:
needs: lint
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}