Skip to content

Merge pull request #18 from devscafecommunity/1-m111-set-up-git-repos… #2

Merge pull request #18 from devscafecommunity/1-m111-set-up-git-repos…

Merge pull request #18 from devscafecommunity/1-m111-set-up-git-repos… #2

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
name: Build & Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache cargo
uses: actions/cache@v3
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Rust
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose
- name: Lint Rust
run: cargo clippy -- -D warnings
security:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rustsec/audit-check-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}