-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (80 loc) · 2.25 KB
/
SoftwareMetrics.yml
File metadata and controls
101 lines (80 loc) · 2.25 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Run tests
on: [push, pull_request]
jobs:
test-compare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch: 1
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Python 3.7 version
uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install json-diff
run: |
npm install -g json-diff
- name: Install rust-code-analysis
env:
LINK: https://github.com/mozilla/rust-code-analysis/releases/download
RCA_VERSION: 0.0.18
DEST_DIR: ./tools/rust-code-analysis
run: |
mkdir -p $DEST_DIR
curl -L "$LINK/v$RCA_VERSION/rust-code-analysis-linux-x86_64.tar.gz" |
tar xz -C $DEST_DIR --strip-components 1
- name: Run compare
run: |
./compare.py
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch: 1
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Python 3.7 version
uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Install pytest
run: |
pip install pytest
- name: Install Tokei
env:
LINK: https://github.com/XAMPPRocky/tokei/releases/download
TOKEI_VERSION: 12.0.4
DEST_DIR: ./tools/Tokei
run: |
mkdir -p $DEST_DIR
curl -L "$LINK/v$TOKEI_VERSION/tokei-x86_64-unknown-linux-musl.tar.gz" |
tar xz -C $DEST_DIR
- name: Install rust-code-analysis
env:
LINK: https://github.com/mozilla/rust-code-analysis/releases/download
RCA_VERSION: 0.0.18
DEST_DIR: ./tools/rust-code-analysis
run: |
mkdir -p $DEST_DIR
curl -L "$LINK/v$RCA_VERSION/rust-code-analysis-linux-x86_64.tar.gz" |
tar xz -C $DEST_DIR --strip-components 1
- name: Run tests
run: |
pytest tests