Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): comment skip code for required workflows #2312

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
34 changes: 18 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ on:
push:
branches:
- development
paths:
- .github/workflows/build.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/**"
- .dockerignore
- .codecov.yml
- Dockerfile
- go.mod
- go.sum
- Makefile
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/build.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/**"
# - .dockerignore
# - .codecov.yml
# - Dockerfile
# - go.mod
# - go.sum
# - Makefile

jobs:
builds:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
on:
pull_request:
paths:
- .github/workflows/checks.yml
- .github/PULL_REQUEST/pull_request.go
- .golangci.yml
- "**/*.go"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/checks.yml
# - .github/PULL_REQUEST/pull_request.go
# - .golangci.yml
# - "**/*.go"
# - go.mod
# - go.sum

name: checks
env:
Expand All @@ -27,7 +29,9 @@ jobs:

check-description:
name: Checks PR has title and body description
if: ${{ github.actor != 'dependabot[bot]' }}
# Commented to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
on:
pull_request:
paths:
- .github/workflows/code-cov.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/**"
- .codecov.yml
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/code-cov.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/**"
# - .codecov.yml
# - go.mod
# - go.sum
name: code-cov
env:
GO111MODULE: on
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ on:
pull_request:
branches:
- development
paths:
- .github/workflows/copyright.yml
- "**/*.go"
- "**/*.proto"
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/copyright.yml
# - "**/*.go"
# - "**/*.proto"

jobs:
copyright-check:
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/docker-grandpa.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
pull_request:
paths:
- .github/workflows/docker-grandpa.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/stress/**"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docker-grandpa.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/stress/**"
# - go.mod
# - go.sum
name: docker-grandpa
env:
GO111MODULE: on
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/docker-js.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
pull_request:
paths:
- .github/workflows/docker-js.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/polkadotjs_test/**"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docker-js.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/polkadotjs_test/**"
# - go.mod
# - go.sum
name: docker-js
env:
GO111MODULE: on
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/docker-rpc.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
pull_request:
paths:
- .github/workflows/docker-rpc.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/rpc/**"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docker-rpc.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/rpc/**"
# - go.mod
# - go.sum
name: docker-rpc
env:
GO111MODULE: on
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
pull_request:
paths:
- .github/workflows/docker-stable.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- scripts/integration-test-all.sh
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docker-stable.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - scripts/integration-test-all.sh
# - go.mod
# - go.sum
name: docker-stable
env:
GO111MODULE: on
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/docker-stress.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
pull_request:
paths:
- .github/workflows/docker-stress.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/stress/**"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docker-stress.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/stress/**"
# - go.mod
# - go.sum
name: docker-stress
env:
GO111MODULE: on
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
push:
branches:
- development
paths:
- .github/workflows/docs.yml
- "docs/**"
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/docs.yml
# - "docs/**"

jobs:
build:
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
on:
pull_request:
paths:
- .github/workflows/integration-tests.yml
- "**/*.go"
- "chain/**"
- "cmd/**"
- "dot/**"
- "internal/**"
- "lib/**"
- "pkg/**"
- "tests/**"
- go.mod
- go.sum
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/integration-tests.yml
# - "**/*.go"
# - "chain/**"
# - "cmd/**"
# - "dot/**"
# - "internal/**"
# - "lib/**"
# - "pkg/**"
# - "tests/**"
# - go.mod
# - go.sum
name: integration-tests

jobs:
integration-tests:
timeout-minutes: 60
strategy:
matrix:
packages: [
github.com/ChainSafe/gossamer/dot/rpc/modules,
github.com/ChainSafe/gossamer/lib/babe
]
packages:
[
github.com/ChainSafe/gossamer/dot/rpc/modules,
github.com/ChainSafe/gossamer/lib/babe,
]
runs-on: ubuntu-latest
steps:
- id: go-cache-paths
Expand Down Expand Up @@ -53,4 +56,3 @@ jobs:

- name: Run integration tests
run: go test -timeout=30m -tags integration ${{ matrix.packages }}

8 changes: 5 additions & 3 deletions .github/workflows/mocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
branches:
- development
paths:
- .github/workflows/mocks.yml
- "**/*.go"
# Commented paths to avoid skipping required workflow
# See https://git.luolix.topmunity/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/mocks.yml
# - "**/*.go"

jobs:
mocks-check:
Expand Down
Loading