Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

chore: Update .gitignore and dlc module #13

chore: Update .gitignore and dlc module

chore: Update .gitignore and dlc module #13

Workflow file for this run

name: CI Workflow
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- run: cargo clippy --all-features --workspace -- -D warnings
coverage:
name: Code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/tarpaulin@v0.1
with:
args: '--ignore-tests --workspace'
security:
name: Security checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run vulnerability checks
run: echo "Running vulnerability checks"
- name: Analyze code
run: echo "Analyzing code"
commit-and-push:
needs: [build-and-test, fmt, clippy, coverage, security]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit and push changes
run: |
git add .
git commit -m "Automated code check, verification, and tests" || echo "No changes to commit"
git push origin main