Skip to content

Commit

Permalink
Merge pull request #1 from biandratti/feature/ci
Browse files Browse the repository at this point in the history
[CI]
  • Loading branch information
biandratti authored Sep 8, 2024
2 parents a4c150b + 2923b5a commit e2b720d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
time: "00:00" # UTC
17 changes: 17 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Security audit

on:
workflow_dispatch:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'

jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration

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

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check code formatting
run: cargo fmt -- --check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check lint
run: cargo clippy -- -D warnings

0 comments on commit e2b720d

Please sign in to comment.