-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.43 KB
/
test_quality.yaml
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
name: Code quality
on:
pull_request:
jobs:
#########################################################
# Code quality tests
#########################################################
test_quality_dotnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0
- run: dotnet format --verify-no-changes
test_quality_ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ansible/ansible-lint-action@v6
test_quality_frontend_web_typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: frontend-web/package.json
- run: npm ci
working-directory: frontend-web
- run: npx eslint . --ext .js,.jsx,.ts,.tsx
working-directory: frontend-web
test_quality_success:
runs-on: ubuntu-latest
needs:
- test_quality_dotnet
- test_quality_ansible
- test_quality_frontend_web_typescript
if: ${{ always() }}
steps:
- run: "[[ '${{ needs.test_quality_dotnet.result }}' == 'success' && '${{ needs.test_quality_ansible.result }}' == 'success' && '${{ needs.test_quality_frontend_web_typescript.result }}' == 'success' ]]"