-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to github actions and cargo fmt (#5)
- Loading branch information
1 parent
ee10f79
commit f0e849b
Showing
23 changed files
with
2,536 additions
and
2,440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
open-pull-requests-limit: 25 | ||
directory: / | ||
registries: [] | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: cargo | ||
open-pull-requests-limit: 25 | ||
directory: / | ||
registries: [] | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: / | ||
registries: [] | ||
schedule: | ||
interval: daily | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# (c) Copyright 2023 Hewlett Packard Enterprise Development LP | ||
|
||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
upload_artifacts: | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | ||
- name: Update Tag | ||
shell: bash | ||
run: | | ||
version=$(echo "$GITHUB_REF" | sed -e 's/^v//') | ||
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml | ||
- name: Publish | ||
run: cargo publish --allow-dirty --locked | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# (c) Copyright 2023 Hewlett Packard Enterprise Development LP | ||
|
||
name: Rust Checks | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Rust Checks | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_TERM_COLOR: always | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | ||
- name: Rust Format | ||
run: cargo fmt --check | ||
- name: Clippy | ||
run: cargo clippy | ||
- name: Test | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
|
||
// (C) Copyright 2019-2020 Hewlett Packard Enterprise Development LP | ||
|
||
#![forbid(unsafe_code)] | ||
|
||
mod types; | ||
mod parser; | ||
mod types; | ||
|
||
pub use types::*; | ||
pub use parser::{parse_expr, Result}; | ||
pub use types::*; |
Oops, something went wrong.