Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ci: skip long jobs when only docs change#3072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ammario merged 2 commits intomainfromdocs-ci
Jul 20, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
ci: skip long jobs when only docs change
Resolves#3058
  • Loading branch information
@ammario
ammario committedJul 20, 2022
commit6984481fcedde7304cc75ba07dc6a136187fc1eb
26 changes: 25 additions & 1 deletion.github/workflows/coder.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,9 +30,24 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
changes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

oh yeah nice find

runs-on: ubuntu-latest
outputs:
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
all:
- '**''
docs:
- 'docs/**'
style-lint-golangci:
name: style/lint/golangci
timeout-minutes: 5
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All@@ -48,6 +63,7 @@ jobs:
name: style/lint/shellcheck
timeout-minutes: 5
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.docs_only }}
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
Expand All@@ -60,6 +76,7 @@ jobs:
style-lint-typescript:
name: "style/lint/typescript"
timeout-minutes: 5
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand DownExpand Up@@ -87,6 +104,7 @@ jobs:
name: "style/gen"
timeout-minutes: 5
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.docs_only }}
steps:
- uses: actions/checkout@v3

Expand DownExpand Up@@ -122,6 +140,7 @@ jobs:

style-fmt:
name: "style/fmt"
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand DownExpand Up@@ -154,6 +173,7 @@ jobs:

test-go:
name: "test/go"
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
Expand DownExpand Up@@ -227,6 +247,7 @@ jobs:

test-go-postgres:
name: "test/go/postgres"
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand DownExpand Up@@ -291,7 +312,9 @@ jobs:
name: "deploy"
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
if: |
github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
&& !needs.changes.outputs.docs_only
permissions:
contents: read
id-token: write
Expand DownExpand Up@@ -397,6 +420,7 @@ jobs:

test-js:
name: "test/js"
if: ${{ needs.changes.outputs.docs_only }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp