Skip to content

Commit

Permalink
Merge pull request #99 from pangeo-forge/run-flink-test-on-label
Browse files Browse the repository at this point in the history
Run flink test on label
  • Loading branch information
cisaacstern authored Sep 1, 2023
2 parents e3c2dd1 + da8901c commit ce14ad5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dataflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
# run on:
# - all pushes to main
# - schedule defined above
# - a PR was just labeled 'test-dataflow'
# - a PR with 'test-dataflow' label was opened, reopened, or synchronized
# - a PR was just labeled 'test-dataflow' or 'test-all'
# - a PR with 'test-dataflow' or 'test-all' label was opened, reopened, or synchronized
if: |
github.event_name == 'push' ||
github.event_name == 'schedule' ||
github.event.label.name == 'test-all' ||
github.event.label.name == 'test-dataflow' ||
contains( github.event.pull_request.labels.*.name, 'test-all') ||
contains( github.event.pull_request.labels.*.name, 'test-dataflow')
runs-on: ubuntu-latest
strategy:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/flink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ opened, reopened, synchronize, labeled ]
schedule:
- cron: '0 4 * * *' # run once a day at 4 AM

jobs:
build:
# run on:
# - all pushes to main
# - schedule defined above
# - a PR was just labeled 'test-flink' or 'test-all'
# - a PR with 'test-flink' or 'test-all' label was opened, reopened, or synchronized
if: |
github.event_name == 'push' ||
github.event_name == 'schedule' ||
github.event.label.name == 'test-all' ||
github.event.label.name == 'test-flink' ||
contains( github.event.pull_request.labels.*.name, 'test-all') ||
contains( github.event.pull_request.labels.*.name, 'test-flink')
runs-on: ubuntu-latest

Expand Down

0 comments on commit ce14ad5

Please sign in to comment.