Skip to content

core: update metre to 2.0, use feature flags (#316) #739

core: update metre to 2.0, use feature flags (#316)

core: update metre to 2.0, use feature flags (#316) #739

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