-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (63 loc) · 2.21 KB
/
integration-testing.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
name: integration-testing
on:
workflow_dispatch:
pull_request:
branches: [main]
permissions:
discussions: write
pull-requests: write
jobs:
generate_failed_job_logs_1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: create_log_file
run: |
cat ./tests/ressources/file_server.log
exit 1
generate_failed_job_logs_2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: create_log_file
run: |
cat ./tests/ressources/file_server.log
exit 1
analyse_logs_from_previous_steps:
runs-on: ubuntu-latest
needs: [generate_failed_job_logs_1, generate_failed_job_logs_2]
if: ${{ always() }}
steps:
- name: analyse_logs_from_previous_steps
id: analyse_logs_from_previous_steps
if: always()
uses: Superbasil3/build-failure-analyser-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
regexes-file-location: https://raw.githubusercontent.com/Superbasil3/build-failure-analyser-action/main/tests/build-failure-analyzer-causes.json
analyse_logs_from_folder:
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- uses: actions/checkout@v3
- name: analyse_logs_from_folder
id: analyse_logs_from_folder
if: always()
uses: Superbasil3/build-failure-analyser-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
regexes-file-location: https://raw.githubusercontent.com/Superbasil3/build-failure-analyser-action/main/tests/build-failure-analyzer-causes.json
path-log-file: ./tests/ressources/folder_with_logs/
analyse_logs_from_file:
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- uses: actions/checkout@v3
- name: analyse_logs_from_file
id: analyse_logs_from_file
if: always()
uses: Superbasil3/build-failure-analyser-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
regexes-file-location: https://raw.githubusercontent.com/Superbasil3/build-failure-analyser-action/main/tests/build-failure-analyzer-causes.json
path-log-file: ./tests/ressources/file_server.log