Skip to content

core: fix typo in crate name last commit, add crates.io badge to README #28

core: fix typo in crate name last commit, add crates.io badge to README

core: fix typo in crate name last commit, add crates.io badge to README #28

Workflow file for this run

name: unit-tests
on:
workflow_dispatch:
push:
paths:
- "metre/**"
- "metre-macros/**"
- "Cargo.toml"
- "Cargo.lock"
branches: [ main, dev ]
pull_request:
paths:
- "metre/**"
- "metre-macros/**"
- "Cargo.toml"
- "Cargo.lock"
branches: [ main, 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
unit-tests:
# needs: skip_check
# if: needs.skip_check.outputs.should_skip != 'true'
runs-on: ubuntu-latest
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/action-local-cache@1.0.0
# with:
# path: ./target/
# key: unit-tests-cargo-target
- name: Cargo Unit Tests
run: cargo test --bins --lib --all-features -- --nocapture