-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (65 loc) · 2.02 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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'
ref: ${{ github.event.pull_request.head.ref }}
- 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
# java
git clone https://github.com/projectlombok/lombok --depth 128
# javascript
git clone https://github.com/lodash/lodash --depth 128
# kotlin
git clone https://github.com/android/nowinandroid --depth 128
# swift
git clone https://github.com/SwiftyJSON/SwiftyJSON --depth 128
# execute bin
cp ./target/debug/gossiphs ./gossiphs
cd tree-sitter
time ../gossiphs relation --symbol-csv test-symbol.csv
cd ..
cd typescript-eslint
time ../gossiphs relation
cd ..
cd gin
time ../gossiphs relation
cd ..
cd fastapi
time ../gossiphs relation
cd ..
cd lombok
time ../gossiphs relation
cd ..
cd lodash
time ../gossiphs relation
cd ..