-
Notifications
You must be signed in to change notification settings - Fork 15
84 lines (75 loc) · 2.31 KB
/
unit-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
78
79
80
81
82
83
84
name: Unit Tests
on: [push, pull_request]
jobs:
backend:
name: Test Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd backend
# smoke test and lint
make run run-cmd="dotnet build" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
crawler:
name: Test Crawler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd crawler
make run run-cmd="npm run lint" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
crawler-api-backend:
name: Test Crawler Api Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd crawler-api-backend
make run run-cmd="npm run lint" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
frontend:
name: Test Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd frontend
make run run-cmd="npm run lint" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
captcha-service:
name: Test Captcha Service
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd captcha-service
make run run-cmd="npm run lint" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
ohunt:
name: Test OHunt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
cd ohunt
# smoke test and lint
make run run-cmd="dotnet build" make-args="no-interactive no-tty"
make test-ci
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
commitlint:
name: Commitlint
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5