-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·45 lines (36 loc) · 1.07 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on: [push, pull_request]
name: Test
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Test VM
uses: actions-rs/cargo@v1
with:
command: test
args: -p dash_vm # no --all-features because jit
- name: Test lints
uses: actions-rs/cargo@v1
with:
command: test
args: -p lints
- name: Lints
run: ./lints.sh
- name: Benchmark VM
run: eval $(cargo test --release --benches -p dash_vm |& grep -o -P 'target/release/deps/full-[^\)]+') --bench --output-format bencher | tee output.txt
- name: Store output
if: github.ref == 'refs/heads/master'
uses: benchmark-action/[email protected]
with:
name: Benchmarks
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true