File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -22,27 +22,22 @@ jobs:
2222 with :
2323 dotnet-version : ' 8.0.406'
2424
25- - name : Install Allure CLI
26- run : |
27- sudo apt update
28- sudo apt install -y allure
29-
3025 - name : Restore Dependencies
3126 run : dotnet restore
3227
3328 - name : Build the Project
3429 run : dotnet build --no-restore
3530
36- - name : Run Selenium Tests with Allure Logger
31+ - name : Create a test directory
3732 run : |
38- mkdir -p allure-results # Ensure allure-results directory exists
39- dotnet test --logger "allure;allure-results=allure-results" --results-directory TestResults
33+ mkdir -p test-artifacts
34+ echo "Test artifact" > test-artifacts/test.txt # Create a dummy file to test upload
4035
41- - name : List Allure Results Directory
42- run : ls -R allure-results # Debugging: check if allure-results folder is generated
36+ - name : List Test Directory
37+ run : ls -R test-artifacts # Check if the file exists
4338
44- - name : Upload Allure Results as Artifact
39+ - name : Upload Test Artifact
4540 uses : actions/upload-artifact@v3
4641 with :
47- name : allure-results
48- path : allure-results # Path to the allure-results folder
42+ name : test-artifacts
43+ path : test-artifacts # Upload the dummy test artifact directory
You can’t perform that action at this time.
0 commit comments