In this task you will need to create a GitHub Actions workflow for Conduit API testing.
-
Open the forked repo in VSCode.
-
Create a new branch by running
git checkout -b task_solution
. -
Run the installation commands:
npm ci
npx playwright install
- Create new workflow file
conduit-api-testing.yml
under the.github/workflows
folder. - Define the workflow with two jobs
run-api-tests
andgenerate-and-publish-report
. - The first job
run-api-tests
should:
- Add steps to install the Playwright dependencies: Node.js, npm packages and browsers.
- Trigger the API tests;
- Upload the
allure_results
artifact.
- The second job
generate-and-publish-report
should:
- Download the
allure_results
artifact; - Install JAVA and Allure CLI;
- Generate allure report to the
_site
folder; - Upload pages artifact;
- Deploy to GitHub Pages. (Remember to enable publishing from the GitHub Actions in the Settings > Pages).
- Add and commit all your updates.
- Push the code to the origin.
- Create a PR for your changes.
- Keep implementing suggestions from code review until your PR is approved.