Skip to content

Commit

Permalink
autotests dummyapi version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey committed Mar 4, 2024
1 parent 10460e1 commit ce0e0d3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/comfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,31 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Checkout repository to GitHub runner
uses: actions/checkout@v3
with:
ref: gh-pages
path: ./.github/gh-pages

- name: Run-tests via docker-compose
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
docker-compose up --exit-code-from dummyapi || true
- name: Copy history from gh-pages to allure-results
run: |
sudo mkdir -p allure-results/history
sudo cp -R ./.github/gh-pages/history/* allure-results/history/
- name: Generate Allure report
run: |
sudo docker-compose run dummyapi /bin/sh -c "allure generate allure-results --clean -o allure-report"
- name: Update Allure history
run: |
sudo cp -R allure-report/history/* ./.github/gh-pages/history/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
Expand Down

0 comments on commit ce0e0d3

Please sign in to comment.