mirror of https://github.com/databricks/cli.git
[WIP] Add label to skip tests
This commit is contained in:
parent
0a36681bef
commit
2e16384e67
|
@ -3,7 +3,7 @@ name: integration
|
||||||
on:
|
on:
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize, labeled]
|
||||||
|
|
||||||
merge_group:
|
merge_group:
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
trigger-tests:
|
trigger-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check-token
|
needs: check-token
|
||||||
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
|
if: (github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true' && github.event.action != 'labeled')
|
||||||
environment: "test-trigger-is"
|
environment: "test-trigger-is"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
||||||
# * Queue times out due to duration of tests.
|
# * Queue times out due to duration of tests.
|
||||||
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
|
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
|
||||||
auto-approve:
|
auto-approve:
|
||||||
if: github.event_name == 'merge_group'
|
if: github.event_name == 'merge_group' || (github.event.action != 'labeled' && github.event_name == 'pull_request' && github.event.label.name == 'skip-tests')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Mark Check
|
- name: Mark Check
|
||||||
|
|
Loading…
Reference in New Issue