-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (50 loc) · 1.46 KB
/
cargo-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: RealWorld Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run real tests
run: |
# rust
git clone https://github.com/tree-sitter/tree-sitter --depth 128
# ts
git clone https://github.com/typescript-eslint/typescript-eslint --depth 128
# golang
git clone https://github.com/gin-gonic/gin --depth 128
# python
git clone https://github.com/tiangolo/fastapi --depth 128
# execute bin
cp ./target/debug/gossiphs ./gossiphs
cd tree-sitter
time ../gossiphs interactive --dry
cd ..
cd typescript-eslint
time ../gossiphs interactive --dry
cd ..
cd gin
time ../gossiphs interactive --dry
cd ..
cd fastapi
time ../gossiphs interactive --dry
cd ..