diff --git a/.github/workflows/comfig.yml b/.github/workflows/comfig.yml index 7472e47..ad9692e 100644 --- a/.github/workflows/comfig.yml +++ b/.github/workflows/comfig.yml @@ -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: