Skip to content

Commit

Permalink
Refactor to library and cli application part
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan committed May 30, 2023
1 parent 3db7be2 commit 073e467
Show file tree
Hide file tree
Showing 145 changed files with 28,822 additions and 5,512 deletions.
11 changes: 11 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#[build]
#rustflags = "-C target-cpu=native -D warnings"
#incremental = true

# TODO: Introduced for `cargo public-api` test,
# remove when it is working on sparse registry
[registries.crates-io]
protocol = "git"

[alias]
xtask = "run --package xtask --"
9 changes: 5 additions & 4 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: Security audit
on:
schedule:
# Runs at 00:00 UTC everyday
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- "**/Cargo.toml"
- "**/Cargo.lock"
- "crates/**/Cargo.toml"
- "crates/**/Cargo.lock"
pull_request:

jobs:
Expand All @@ -27,4 +29,3 @@ jobs:
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

30 changes: 30 additions & 0 deletions .github/workflows/breaking_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
pull_request:
push:
branches:
- release/*

name: Breaking changes

jobs:
test:
name: Test
runs-on: ${{ matrix.job.os }}
strategy:
matrix:
rust: [stable]
job:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test -r --all-targets --all-features --workspace -- --ignored
8 changes: 5 additions & 3 deletions .github/workflows/check-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
branches:
- main


name: Check and Lint
# env:
# RUSTFLAGS: "-Dwarnings"

jobs:
check:
Expand All @@ -22,7 +23,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
args: --all-features --workspace

fmt:
name: Rustfmt
Expand All @@ -43,6 +44,7 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -54,5 +56,5 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
args: --all-targets --all-features -- -D warnings
name: Clippy Output
12 changes: 1 addition & 11 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
toolchain: stable
args: --release
- name: Running bats tests
shell: bash
run: |
./test-bats/run-tests.sh
command: test -r --all-targets --all-features --workspace
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/target
**/*.rs.bk
.vscode
mutants.out
cargo-test*
coverage/*lcov
Loading

0 comments on commit 073e467

Please sign in to comment.