mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-22 01:02:30 +00:00
ci: skip test jobs for draft pull requests
This commit is contained in:
@@ -22,6 +22,7 @@ on:
|
|||||||
- 'package.json'
|
- 'package.json'
|
||||||
- 'package-lock.json'
|
- 'package-lock.json'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/cli-deno-tests.yml'
|
- '.github/workflows/cli-deno-tests.yml'
|
||||||
- 'src/apps/cli/**'
|
- 'src/apps/cli/**'
|
||||||
@@ -66,6 +67,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
env:
|
env:
|
||||||
@@ -125,6 +127,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ name: CLI Docker validation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/cli-docker.yml'
|
- '.github/workflows/cli-docker.yml'
|
||||||
- '.github/workflows/cli-docker-validation.yml'
|
- '.github/workflows/cli-docker-validation.yml'
|
||||||
@@ -40,6 +41,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bundle:
|
bundle:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
name: Build shared Docker CLI bundle
|
name: Build shared Docker CLI bundle
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@@ -72,6 +74,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
validate:
|
validate:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
name: Docker E2E (${{ matrix.arch }})
|
name: Docker E2E (${{ matrix.arch }})
|
||||||
needs: bundle
|
needs: bundle
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
@@ -171,7 +174,7 @@ jobs:
|
|||||||
summary:
|
summary:
|
||||||
name: Collect both Docker E2E results
|
name: Collect both Docker E2E results
|
||||||
needs: validate
|
needs: validate
|
||||||
if: always()
|
if: ${{ always() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ on:
|
|||||||
- '.dockerignore'
|
- '.dockerignore'
|
||||||
- 'test/bench-network/**'
|
- 'test/bench-network/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/cli-p2p-tests.yml'
|
- '.github/workflows/cli-p2p-tests.yml'
|
||||||
- 'src/apps/cli/**'
|
- 'src/apps/cli/**'
|
||||||
@@ -53,6 +54,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compose-p2p-e2e:
|
compose-p2p-e2e:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ on:
|
|||||||
- '.github/workflows/cli-docker.yml'
|
- '.github/workflows/cli-docker.yml'
|
||||||
- '.github/workflows/unit-ci.yml'
|
- '.github/workflows/unit-ci.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- 'manifest.json'
|
- 'manifest.json'
|
||||||
- 'updates.md'
|
- 'updates.md'
|
||||||
@@ -86,6 +87,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup-tools:
|
setup-tools:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
name: Self-hosted setup tools
|
name: Self-hosted setup tools
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@@ -134,6 +136,7 @@ jobs:
|
|||||||
run: npm run test:docker-couchdb:stop || true
|
run: npm run test:docker-couchdb:stop || true
|
||||||
|
|
||||||
unit-test:
|
unit-test:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -173,6 +176,7 @@ jobs:
|
|||||||
path: coverage/**
|
path: coverage/**
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
|
||||||
name: Integration Tests
|
name: Integration Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|||||||
Reference in New Issue
Block a user