Skip to content

build(deps): bump serde_json from 1.0.114 to 1.0.115 #32

build(deps): bump serde_json from 1.0.114 to 1.0.115

build(deps): bump serde_json from 1.0.114 to 1.0.115 #32

Workflow file for this run

name: test
on:
pull_request:
branches: [dev]
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install cargo components
run: rustup component add clippy
- name: Extract version
id: extract-version
run: echo "VERSION=$(grep -oP '^version = "\K[^"]+' Cargo.toml | awk '{$1=$1;print}')" >> $GITHUB_OUTPUT
- name: Cache restore
uses: actions/cache/restore@v4
id: cache-cargo-restore
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ steps.extract-version.outputs.VERSION }}
- name: Run build
if: steps.cache-cargo-restore.outputs.cache-hit != 'true'
run: cargo build --all-features --all-targets
- name: Cache save
if: steps.cache-cargo-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
id: cache-cargo-save
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ steps.cache-cargo-restore.outputs.cache-primary-key }}
- name: run tests
run: .github/scripts/test.sh