dummyapi #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dummyapi | |
on: workflow_dispatch | |
jobs: | |
api_tests: | |
runs-on: ubuntu-latest | |
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: | |
token: ${{ secrets.CI_TOKEN }} | |
branch: gh-pages | |
folder: allure-report | |
clean: true |