Skip to content

Commit

Permalink
ci: merge remote-tracking branch 'ci/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Mar 3, 2024
2 parents 067a654 + 018d71c commit 0eff93a
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Security audit

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

on:
schedule:
- cron: '00 10 * * 3' # 06:00 GMT-4
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/install-action@cargo-deny
- name: Scan for vulnerabilities
run: cargo deny check advisories
46 changes: 46 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Rust

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

on:
push:
branches:
- main
- develop

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
- name: Run tests
run: cargo test --all-features

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
components: clippy
- name: Linting
run: cargo clippy -- -D warnings
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Build Confirmation

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

on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always

jobs:
release_compile:
name: ReleaseCompile
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
- name: Run Release Compile
run: cargo check --all-features --release
25 changes: 25 additions & 0 deletions .github/workflows/semver_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check Semver

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

on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always


jobs:
semver-checks:
runs-on: ubuntu-latest
steps:
- name: checkout@main
uses: wykies/checkout
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@main

0 comments on commit 0eff93a

Please sign in to comment.