ci: Require docs job to pass before making a release
This commit is contained in:
committed by
Wolfgang Walther
parent
333f8cf592
commit
073280ad32
@@ -18,6 +18,12 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
docs:
|
||||||
|
name: Docs
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
uses: ./.github/workflows/docs.yaml
|
||||||
|
|
||||||
|
|
||||||
Lint-Style:
|
Lint-Style:
|
||||||
name: Lint & check code style
|
name: Lint & check code style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -353,6 +359,7 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
|
- docs
|
||||||
- Lint-Style
|
- Lint-Style
|
||||||
- Test-Nix
|
- Test-Nix
|
||||||
- Test-Pg-Nix
|
- Test-Pg-Nix
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
name: Docs
|
name: Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- v[0-9]+
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- v[0-9]+
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Terminate all previous runs of the same workflow for pull requests
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
@@ -17,7 +10,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build docs
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -29,7 +22,7 @@ jobs:
|
|||||||
- run: git diff --exit-code HEAD locales || echo "Please commit changes to the locales/ folder after running postgrest-docs-build."
|
- run: git diff --exit-code HEAD locales || echo "Please commit changes to the locales/ folder after running postgrest-docs-build."
|
||||||
|
|
||||||
spellcheck:
|
spellcheck:
|
||||||
name: Run spellcheck
|
name: Spellcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -40,7 +33,7 @@ jobs:
|
|||||||
- run: postgrest-docs-spellcheck
|
- run: postgrest-docs-spellcheck
|
||||||
|
|
||||||
dictcheck:
|
dictcheck:
|
||||||
name: Run dictcheck
|
name: Dictcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -51,7 +44,7 @@ jobs:
|
|||||||
- run: postgrest-docs-dictcheck
|
- run: postgrest-docs-dictcheck
|
||||||
|
|
||||||
linkcheck:
|
linkcheck:
|
||||||
name: Run linkcheck
|
name: Linkcheck
|
||||||
if: github.base_ref == 'main'
|
if: github.base_ref == 'main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user