-
-
Notifications
You must be signed in to change notification settings - Fork 122
55 lines (46 loc) · 1.44 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
46
47
48
49
50
51
52
53
54
55
name: Test
on: [push, pull_request]
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: Swatinem/rust-cache@v2
with:
key: "test"
- name: Install build deps
run: |
sudo apt-get install openssh-client expect
cargo install just
cargo install cargo-llvm-cov
cargo clean
rustup component add llvm-tools-preview
- name: Build UI
run: |
just yarn --network-timeout 1000000000
just openapi
just yarn openapi:tests-sdk
just yarn build
- name: Build images
working-directory: tests
run: |
make all
- name: Install deps
working-directory: tests
run: |
sudo apt install -y gnome-keyring
pip3 install keyring==24 poetry==1.8.3
poetry install
- name: Run
working-directory: tests
run: |
TIMEOUT=120 poetry run ./run.sh
cargo llvm-cov --no-run --hide-instantiations --lcov > coverage.lcov
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: github.repository_owner == 'warp-tech' && github.actor != 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}