chore: unnecessary return
statement
#53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# 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 | |
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 .. |