Update qase-proper-setup.yml #9
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: Example tests | |
| on: | |
| push: | |
| branches: | |
| - main # Trigger on pushes to the 'main' branch. Change this to your default branch if different. | |
| pull_request: | |
| branches: | |
| - main # Trigger on pull requests to the 'main' branch. | |
| workflow_dispatch: | |
| env: | |
| QASE_TESTOPS_API_TOKEN: ${{ secrets.QASE_API_TOKEN }} | |
| QASE_TESTOPS_PROJECT: ${{ vars.QASE_TESTOPS_PROJECT }} | |
| QASE_TESTOPS_RUN_COMPLETE: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: | | |
| npm install | |
| - name: Get run title | |
| id: set_title | |
| run: | | |
| BRANCH_NAME=${GITHUB_REF##*/} | |
| COMMIT_MESSAGE=$(git log -1 --pretty=format:%s) | |
| echo "QASE_TESTOPS_RUN_TITLE=qase-playwright@$BRANCH_NAME: $COMMIT_MESSAGE" >> $GITHUB_ENV | |
| - name: Run Playwright tests | |
| run: | | |
| npm test |