run in CI #100
This file contains hidden or 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: Chapter 08 - Sauce Labs Integration | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run Tests | |
| run: | | |
| cd ./solutions/chapter_08/saucelabs | |
| npm install | |
| npm run test:sauce | |
| env: | |
| SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
| SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: allure-report | |
| path: | | |
| ./solutions/chapter_08/saucelabs/logs | |
| ./solutions/chapter_08/saucelabs/myAllureReport | |
| if: always() |