Skip to content

Commit

Permalink
Initial version of CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Fethbita committed Oct 6, 2024
1 parent a276265 commit 224c902
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

container:
image: rust:1.81-alpine3.20

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0

- name: Build
run: cargo build --release --verbose

- name: Run tests
run: cargo test --all-features --verbose

- name: Audit
run: |
cargo install --version 0.20.1 cargo-audit
cargo audit
- name: Lint
run: cargo clippy -- -D warnings

0 comments on commit 224c902

Please sign in to comment.