Skip to content

Commit

Permalink
add running on an approving review
Browse files Browse the repository at this point in the history
don't specify linkml-runtime repository so it works on pull requests
  • Loading branch information
sneakers-the-rat committed Mar 25, 2024
1 parent dad8f20 commit ea9c1b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test-upstream.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Test with upstream linkml
on:
pull_request_review:
types: [ submitted ]
workflow_dispatch:

jobs:
test_upstream:
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'APPROVED'
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
Expand All @@ -24,17 +26,20 @@ jobs:
runs-on: ${{ matrix.os }}

steps:

- name: checkout upstream
uses: actions/checkout@v4
with:
repository: linkml/linkml
path: linkml
ref: main
fetch-depth: 0

- name: checkout linkml-runtime
uses: actions/checkout@v4
with:
repository: linkml/linkml-runtime
# don't specify repository like this or else we won't get pull request branches correctly
# repository: linkml/linkml-runtime
path: linkml-runtime
fetch-depth: 0

Expand Down

0 comments on commit ea9c1b7

Please sign in to comment.