Skip to content

Update qase-multiple-runs.yml #13

Update qase-multiple-runs.yml

Update qase-multiple-runs.yml #13

Workflow file for this run

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