Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
update package name (#7)
Browse files Browse the repository at this point in the history
* update package name

* fix yaml

* update renovate
  • Loading branch information
kentsday authored Jun 8, 2023
1 parent 809b224 commit 05cf6b1
Show file tree
Hide file tree
Showing 19 changed files with 141 additions and 79 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: write

jobs:
ut:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: llvm-tools-preview
- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.10/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: |
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
export RUSTDOCFLAGS="-C instrument-coverage"
cargo build $CARGO_OPTIONS
cargo test $CARGO_OPTIONS
grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
# - uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
# files: ./src/coverage.lcov # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
# fail_ci_if_error: true # optional (default = false)
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
109 changes: 47 additions & 62 deletions config-cli/Cargo.lock → Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion config-cli/Cargo.toml → Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[package]
name = "config-cli"
name = "env-to-config-toml"
version = "0.1.0"
edition = "2021"
authors = ["Deland Labs Core Dev <delandlabs@gmail.com>"]
license = "MIT"
description = "A tool to search files"
homepage = "https://github.com/Deland-Labs/env_to_config_toml"
repository = "https://github.com/Deland-Labs/env_to_config_toml"
keywords = ["cli", "env"]
categories = ["command-line-utilities"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
8 changes: 0 additions & 8 deletions config-cli/.idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions config-cli/.idea/vcs.xml

This file was deleted.

11 changes: 10 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"packageRules": [
{
"groupName": "all dependencies",
"groupSlug": "all",
"matchPackagePatterns": [
"*"
]
}
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions src/test_data/old.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

[env]
E = "asd||||qwe"
F = "asd||||qwe||||asd||||qaaa||||ccc"
G = "123||||qwe||||ddd||||qaaa||||ccc"


[test]
Y = "asd||||qwe"
U = "asd||||qwe||||asd||||qaaa||||ccc"
I = "123||||qwe||||ddd||||qaaa||||ccc"
File renamed without changes.
11 changes: 11 additions & 0 deletions src/test_data/overwrite.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

[env]
A = "11||||qwe"
B = "22||||qwe||||asd||||qaaa||||ccc"
C = "33||||qwe||||ddd||||qaaa||||ccc"


[test]
Y = "asd||||qwe"
U = "asd||||qwe||||asd||||qaaa||||ccc"
I = "123||||qwe||||ddd||||qaaa||||ccc"
11 changes: 11 additions & 0 deletions src/test_data/overwrite_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

[env]
A = "11||||qwe"
B = "22||||qwe||||asd||||qaaa||||ccc"
C = "33||||qwe||||ddd||||qaaa||||ccc"


[test]
Y = "asd||||qwe"
U = "asd||||qwe||||asd||||qaaa||||ccc"
I = "123||||qwe||||ddd||||qaaa||||ccc"

0 comments on commit 05cf6b1

Please sign in to comment.