Add tests for heapviz tool.
This commit is contained in:
7
.github/workflows/cargo_fmt.yml
vendored
7
.github/workflows/cargo_fmt.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
- 'examples/*.rs'
|
||||
- 'libraries/**/*.rs'
|
||||
- 'src/**/*.rs'
|
||||
- 'tools/**/*.rs'
|
||||
- 'patches/**'
|
||||
- '**/Cargo.toml'
|
||||
- '.cargo/config'
|
||||
@@ -46,3 +47,9 @@ jobs:
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path libraries/crypto/Cargo.toml --all -- --check
|
||||
|
||||
- name: Cargo format tools/heapviz
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path tools/heapviz/Cargo.toml --all -- --check
|
||||
|
||||
32
.github/workflows/heapviz_test.yml
vendored
Normal file
32
.github/workflows/heapviz_test.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Heapviz tool tests
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'tools/heapviz/**'
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
cbor_test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Check heapviz tool
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --manifest-path tool/heapviz/Cargo.toml
|
||||
|
||||
- name: Unit testing of heapviz tool (debug mode)
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --manifest-path tool/heapviz/Cargo.toml
|
||||
|
||||
- name: Unit testing of heapviz tool (release mode)
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --manifest-path tool/heapviz/Cargo.toml --release
|
||||
Reference in New Issue
Block a user