Skip to content

Commit ef2f440

Browse files
committed
install allure commandline using brew commands
1 parent 0f87fd2 commit ef2f440

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/github_actions_tests.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@ 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
45+
- name: Install Allure CLI using Homebrew
4646
run: |
47-
sudo apt-add-repository ppa:qameta/allure -y
48-
sudo apt-get update
49-
sudo apt-get install allure -y
47+
sudo apt-get update
48+
sudo apt-get install -y curl git
49+
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
50+
mkdir ~/.linuxbrew/bin
51+
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
52+
eval "$(~/.linuxbrew/bin/brew shellenv)"
53+
echo 'eval "$(/home/runner/.linuxbrew/bin/brew shellenv)"' >> $GITHUB_ENV
54+
source $GITHUB_ENV
55+
brew install allure
5056
5157
- name: Run tests(UI & API) with Pytest
5258
run: |
@@ -55,7 +61,8 @@ jobs:
5561
5662
- name: Generate Allure Report
5763
run: |
58-
npx allure generate allure-results --clean -o allure-report
64+
source $GITHUB_ENV
65+
allure generate allure-results -o allure-report --clean
5966
6067
- name: Deploy Allure Report to GitHub Pages
6168
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)