Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

name: autofix.ci
env:
RUSTFLAGS: -Dwarnings
on:
RUSTFLAGS: '-Dwarnings'
'on':
pull_request:
types:
- opened
Expand All @@ -29,12 +29,17 @@ on:
push:
branches:
- main
tags:
- v*
jobs:
lint:
name: Lint Fix
runs-on: ubuntu-latest
permissions:
contents: read
concurrency:
group: autofix-${{github.ref}}
cancel-in-progress: false
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -43,11 +48,16 @@ jobs:
with:
toolchain: nightly
components: clippy, rustfmt
cache: 'true'
cache-directories: |-
~/.cargo/registry
~/.cargo/git
target
- name: Setup protoc
uses: arduino/setup-protoc@v3
- name: Cargo Fmt
run: cargo +nightly fmt --all
- name: Cargo Clippy
run: cargo +nightly clippy --fix --allow-dirty --all-features --workspace -- -D warnings
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
concurrency:
group: autofix-${{github.ref}}
cancel-in-progress: false
- name: autofix.ci
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
41 changes: 30 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

name: ci
env:
RUSTFLAGS: -Dwarnings
on:
RUSTFLAGS: '-Dwarnings'
'on':
pull_request:
types:
- opened
Expand All @@ -41,9 +41,28 @@ jobs:
- name: Setup Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Cargo Test
run: cargo test --all-features --workspace
toolchain: nightly
components: llvm-tools-preview
cache: 'true'
- name: Cache cargo-llvm-cov
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-llvm-cov
key: ${{ runner.os }}-cargo-llvm-cov-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-llvm-cov-
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov || true
- name: Generate coverage
run: cargo +nightly llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload Coverage to Codecov
uses: Wandalen/wretry.action@v3
with:
action: codecov/codecov-action@v4
attempt_limit: '3'
attempt_delay: '10000'
with: |-
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
lint:
name: Lint
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,6 +91,9 @@ jobs:
contents: write
pull-requests: write
packages: write
concurrency:
group: release-${{github.ref}}
cancel-in-progress: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand All @@ -82,9 +104,6 @@ jobs:
uses: release-plz/action@v0.5
with:
command: release
concurrency:
group: release-${{github.ref}}
cancel-in-progress: false
release-pr:
needs:
- build
Expand All @@ -96,6 +115,9 @@ jobs:
contents: write
pull-requests: write
packages: write
concurrency:
group: release-${{github.ref}}
cancel-in-progress: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand All @@ -106,6 +128,3 @@ jobs:
uses: release-plz/action@v0.5
with:
command: release-pr
concurrency:
group: release-${{github.ref}}
cancel-in-progress: false
40 changes: 40 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -------------------------------------------------------------------
# ------------------------------- WARNING ---------------------------
# -------------------------------------------------------------------
#
# This file was automatically generated by gh-workflows using the
# gh-workflow-gen bin. You should add and commit this file to your
# git repository. **DO NOT EDIT THIS FILE BY HAND!** Any manual changes
# will be lost if the file is regenerated.
#
# To make modifications, update your `build.rs` configuration to adjust
# the workflow description as needed, then regenerate this file to apply
# those changes.
#
# -------------------------------------------------------------------
# ----------------------------- END WARNING -------------------------
# -------------------------------------------------------------------

name: Build
'on':
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5
with:
fetch-depth: '0'
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
/ci/target
/.idea
Loading