Test PR 1/merge #7
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
# SPDX-FileCopyrightText: Copyright 2020-2024, Contributors to CICD | |
# SPDX-PackageHomePage: https://github.com/dmyersturnbull/cicd | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# SPDX-FileCopyrightText: Copyright 2024, the RCSB PDB and contributors | |
# SPDX-PackageHomePage: https://github.com/rcsb/rcsb-chem-search | |
# SPDX-License-Identifier: BSD-3-Clause | |
# | |
# Original source code is from: | |
# CICD (https://github.com/dmyersturnbull/cicd). | |
# This file includes modifications. | |
# | |
# This workflow runs tests for pull requests and issue comments. | |
# It is triggered by pull request events (ready for review, synchronize, edited) | |
# and issue comments (created). | |
# The tests are conditional based on the state of the pull request (not in draft) | |
# and specific events. | |
name: Test PR | |
run-name: ${{ github.workflow }} ${{ github.ref_name }} | |
on: | |
pull_request: | |
types: | |
- ready_for_review | |
- synchronize | |
- edited | |
issue_comment: | |
types: | |
- created | |
jobs: | |
test: | |
name: Run tests for PR and issue comments | |
# Run tests if the PR is ready for review, synchronized (and not in draft), or edited (and not in draft), | |
# or if an issue comment is created. | |
if: > | |
github.event_name == 'pull_request' && | |
github.event.action == 'ready_for_review' || | |
github.event_name == 'pull_request' && | |
github.event.action == 'synchronize' && | |
github.event.pull_request.draft == false || | |
github.event_name == 'pull_request' && | |
github.event.action == 'edited' && | |
github.event.pull_request.draft == false || | |
github.event_name == 'issue_comment' && | |
github.event.action == 'created' | |
uses: ./.github/workflows/_test.yaml | |
secrets: inherit |