Bump jsonschema from 0.18.1 to 0.20.0 #55
Workflow file for this run
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
on: | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/[email protected] | |
- name: ⚙️ Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: ⚙️ Init GitHub check | |
uses: LouisBrunner/[email protected] | |
id: init | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Check for errors | |
status: in_progress | |
- name: ✅ Check for errors | |
run: cargo check | |
- name: ⚙️ Update GitHub check | |
uses: LouisBrunner/[email protected] | |
if: always() | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check_id: ${{ steps.init.outputs.check_id }} | |
conclusion: ${{ job.status }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/[email protected] | |
- name: ⚙️ Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: ⚙️ Init GitHub check | |
uses: LouisBrunner/[email protected] | |
id: init | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Check linting | |
status: in_progress | |
- name: ✅ Check linting | |
run: cargo clippy --message-format human --all | |
- name: ⚙️ Update GitHub check | |
uses: LouisBrunner/[email protected] | |
if: always() | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check_id: ${{ steps.init.outputs.check_id }} | |
conclusion: ${{ job.status }} | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/[email protected] | |
- name: ⚙️ Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: ⚙️ Init GitHub check | |
uses: LouisBrunner/[email protected] | |
id: init | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Check formatting | |
status: in_progress | |
- name: ✅ Check formatting | |
run: cargo fmt --check --message-format human --all | |
- name: ⚙️ Update GitHub check | |
uses: LouisBrunner/[email protected] | |
if: always() | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check_id: ${{ steps.init.outputs.check_id }} | |
conclusion: ${{ job.status }} | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/[email protected] | |
- name: Init check | |
uses: LouisBrunner/[email protected] | |
id: init | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Run tests with coverage | |
status: in_progress | |
- name: ⚙️ Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: ⚙️ Install grcov | |
run: cargo install grcov | |
- name: ⚙️ Install llvm-tools-preview | |
run: rustup component add llvm-tools-preview | |
- name: ✅ Run tests with coverage | |
run: | | |
mkdir -p target/coverage | |
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test | |
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov | |
- name: 📝 Comment Code Coverage Report | |
uses: romeovs/[email protected] | |
with: | |
lcov-file: target/coverage/tests.lcov | |
- name: ⚙️ Update GitHub check | |
uses: LouisBrunner/[email protected] | |
if: always() | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check_id: ${{ steps.init.outputs.check_id }} | |
conclusion: ${{ job.status }} |