mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-22 09:03:21 +00:00
ci: skip test jobs for draft pull requests
This commit is contained in:
1 parent
f0ea5cb3a0
commit
30adf842eb
4 files changed
+13
-1
No files matched your search
@@ -44,6 +44,7 @@ on:
|
||||
- '.github/workflows/cli-docker.yml'
|
||||
- '.github/workflows/unit-ci.yml'
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- 'manifest.json'
|
||||
- 'updates.md'
|
||||
@@ -86,6 +87,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
setup-tools:
|
||||
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||
name: Self-hosted setup tools
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
@@ -134,6 +136,7 @@ jobs:
|
||||
run: npm run test:docker-couchdb:stop || true
|
||||
|
||||
unit-test:
|
||||
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||
name: Unit Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
@@ -173,6 +176,7 @@ jobs:
|
||||
path: coverage/**
|
||||
|
||||
integration-test:
|
||||
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||
name: Integration Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
Reference in new issue
Block a user