Skip to content

Commit

Permalink
fix(cicd): update version automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfiaschi committed Dec 17, 2021
1 parent 443c774 commit 37e2247
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 52 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
name: CI
---
name: ci

on: [push]
on: push

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -18,7 +28,7 @@ jobs:
- run: cargo clean
- run: cargo build
unit-tests:
needs: [build]
needs: [build,lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -30,7 +40,7 @@ jobs:
- run: cargo test --doc -- --test-threads=1
- run: cargo test --lib -- --test-threads=1
integration-tests:
needs: [build]
needs: [build,lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -41,13 +51,14 @@ jobs:
- uses: Swatinem/rust-cache@v1
- run: cargo test --tests -- --test-threads=1
benchmark:
needs: ["build"]
needs: [build,lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nelonoel/branch-name@v1.0.1
- uses: actions-rs/toolchain@v1
with:

toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
Expand All @@ -61,8 +72,26 @@ jobs:
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '130%'
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@jmfiaschi'
benchmark-data-dir-path: 'docs/bench/${{ env.BRANCH_NAME }}'
release:
needs: [benchmark,integration-tests,unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Semantic Release
run: |
sudo npm install semantic-release -g
sudo npm install @semantic-release/changelog -g
sudo npm install @semantic-release/git -g
sudo npm install @semantic-release/github -g
sudo npm install @semantic-release/exec -g
cargo install semantic-release-rust --version 1.0.0-alpha.8
- name: Run Semantic Release
run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/lint.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/release.yml

This file was deleted.

12 changes: 11 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"verifyConditionsCmd": "semantic-release-rust verify-conditions",
"prepareCmd": "semantic-release-rust prepare ${nextRelease.version}",
"publishCmd": "semantic-release-rust publish"
}
],
[
"@semantic-release/git",
{
Expand All @@ -24,6 +33,7 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
],
"@semantic-release/github"
]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "json_value_resolve"
version = "0.2.0"
version ="1.0.4-beta.5"
authors = ["Jean-Marc Fiaschi <jm.fiaschi@gmail.com>"]
edition = "2018"
description = "Interface to resolve String to serde_json::Value."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Give an interface to resolve scalar to json_serde::Value.

```Toml
[dependencies]
json_value_resolve = "0.2"
json_value_resolve = "1.0"
```

## Usage
Expand Down

0 comments on commit 37e2247

Please sign in to comment.