Skip to content

Commit fbc249c

Browse files
committed
generate allure results using github step simple-elf/allure-report-action@master
1 parent f6e50d6 commit fbc249c

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/github_actions_tests.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,19 @@ jobs:
4242
echo "BASE_URL_FE=${BASE_URL_FE}" > .env
4343
echo "BASE_URL_API=${BASE_URL_API}" > .env
4444
45-
- name: Install Allure CLI
46-
run: |
47-
sudo apt-add-repository ppa:qameta/allure -y
48-
sudo apt-get update
49-
sudo apt-get install allure -y
5045
5146
- name: Run tests(UI & API) with Pytest
5247
run: |
5348
source .venv/bin/activate
5449
pytest Ultimateqa/tests -n auto api_tests/test_users.py -n auto --alluredir=allure-results
55-
56-
- name: Generate Allure Report
57-
run: |
58-
source $GITHUB_ENV
59-
allure generate allure-results -o allure-report --clean
50+
51+
- name: Generate and publish Allure Report
52+
uses: simple-elf/allure-report-action@master
53+
with:
54+
results-directory: allure-results
55+
report-directory: allure-report
56+
allure-endpoint: ""
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
6058

6159
- name: Deploy Allure Report to GitHub Pages
6260
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)