Run less tests #4
Workflow file for this run
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: Dummy PR Test Workflow | |
on: | |
pull_request: | |
types: [opened] # Trigger only on PR creation | |
issue_comment: | |
types: [created] # Trigger on comment creation | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.event.pull_request.number || github.ref }} # Group by PR number or branch reference | |
cancel-in-progress: false # Don't cancel any in-progress runs | |
steps: | |
- name: Check if it's an issue comment with /run-tests | |
if: ${{ github.event_name == 'issue_comment' && contains(github.event.comment.body, '/run-tests') }} | |
run: echo "Tests are being triggered by a comment." | |
- name: Simulate test run | |
if: ${{ github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/run-tests')) }} | |
run: | | |
echo "Test triggered by PR creation or /run-tests comment" | |
sleep 120 # Simulate a long-running test |