mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
chore: add benchmark to github actions
Signed-off-by: azjezz <azjezz@protonmail.com>
This commit is contained in:
parent
452592b8fe
commit
c02b4db78d
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -22,9 +22,6 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: install just
|
|
||||||
uses: extractions/setup-just@v1
|
|
||||||
|
|
||||||
- name: install rust
|
- name: install rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@ -35,9 +32,18 @@ jobs:
|
|||||||
- name: cache
|
- name: cache
|
||||||
uses: Swatinem/rust-cache@v2.0.0
|
uses: Swatinem/rust-cache@v2.0.0
|
||||||
|
|
||||||
|
- name: install just and hyperfine
|
||||||
|
run: |
|
||||||
|
cargo install just
|
||||||
|
cargo install hyperfine
|
||||||
|
|
||||||
- name: check
|
- name: check
|
||||||
if: matrix.rust == 'stable'
|
if: matrix.rust == 'stable'
|
||||||
run: just lint
|
run: just lint
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: just test
|
run: just test
|
||||||
|
|
||||||
|
- name: bench
|
||||||
|
if: matrix.rust == 'stable'
|
||||||
|
run: hyperfine --prepare "cargo build -r" --runs 10 --warmup 2 -i "cargo test --all -r"
|
||||||
|
7
.github/workflows/third-party-tests.yml
vendored
7
.github/workflows/third-party-tests.yml
vendored
@ -21,9 +21,6 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: install just
|
|
||||||
uses: extractions/setup-just@v1
|
|
||||||
|
|
||||||
- name: install rust
|
- name: install rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@ -34,6 +31,10 @@ jobs:
|
|||||||
- name: cache
|
- name: cache
|
||||||
uses: Swatinem/rust-cache@v2.0.0
|
uses: Swatinem/rust-cache@v2.0.0
|
||||||
|
|
||||||
|
- name: install just
|
||||||
|
run: |
|
||||||
|
cargo install just
|
||||||
|
|
||||||
- name: test third-party
|
- name: test third-party
|
||||||
run: just test-third-party
|
run: just test-third-party
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user