Skip to content

Bump jsonschema from 0.18.1 to 0.20.0 #55

Bump jsonschema from 0.18.1 to 0.20.0

Bump jsonschema from 0.18.1 to 0.20.0 #55

Workflow file for this run

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 }}