rework test #11
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
name: CI Rust -> Check code and make git version | |
on: | |
push: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use cached deps | |
uses: actions/cache@v4 | |
with: | |
path: target | |
key: static-deps-data | |
- name: Configurate rust | |
uses: actions-rs/toolchain@v1.0.6 | |
with: | |
toolchain: stable | |
- name: clippy | |
run: cargo clippy --all-targets -F full -r -- -D warnings | |
# Test all code by parts | |
- name: Test code | |
run: cargo test -p shuller -F full -r --lib; | |
- name: Test code and tests | |
run: cargo test -p shuller tests -F full -r; | |
- name: Tests doc | |
run: cargo test -F full --doc -r | |
create-version: | |
needs: check-code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: target | |
key: static-deps-data | |
- name: Create Release Pull Request | |
uses: cargo-bins/release-pr@v2.1.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: patch |