Skip to content

core: use workspace dependencies, upgrade tokio, hyper, and many more… #735

core: use workspace dependencies, upgrade tokio, hyper, and many more…

core: use workspace dependencies, upgrade tokio, hyper, and many more… #735

name: backend-unit-tests
on:
push:
paths:
- "rs/**"
- "Cargo.toml"
- "Cargo.lock"
- "openstream.sample.toml"
- "openstream.sample.jsonc"
branches: [ master, dev ]
pull_request:
paths:
- "rs/**"
- "Cargo.toml"
- "Cargo.lock"
- "openstream.sample.toml"
- "openstream.sample.jsonc"
branches: [ master, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
# skip_check:
# runs-on: self-hosted-unit-tests
# outputs:
# should_skip: ${{ steps.skip_check.outputs.should_skip }}
# steps:
# - id: skip_check
# uses: fkirc/skip-duplicate-actions@v5
backend-unit-tests:
# needs: skip_check
# if: needs.skip_check.outputs.should_skip != 'true'
runs-on: self-hosted-unit-tests
steps:
- uses: actions/checkout@v3
# - uses: actions/cache@v3
# with:
# path: ./target
# key: "${{ runner.os }}-cargo-unit-tests-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }}"
# restore-keys: |
# ${{ runner.os }}-cargo-unit-tests-
- name: Local cargo cache
id: unit-tests-cargo-cache
uses: MasterworksIO/[email protected]
with:
path: ./target/
key: unit-tests-cargo-target
- name: Cargo Unit Tests
run: cargo test --bins --lib -- --nocapture