Skip to content

Commit

Permalink
Rename gh workflows (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoipm authored Jul 24, 2024
1 parent f7f865b commit 3849057
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: serverless build (pull)
name: build (pull)

on:
workflow_call:
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]

permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout

jobs:
build-operator:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
name: serverless build (push)
name: build (push)

on:
workflow_call:
push:
branches: [ "main", "release-*" ]
paths-ignore:
- 'docs/**'
- 'examples/**'
tags:
- '^v?\d+\.\d+\.\d+(?:-.*)?$'

permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout

jobs:
compute-tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: gitleaks

on:
workflow_call:
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]

env:
GITLEAKS_VERSION: 8.18.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: images verify
run-name: ${{github.event.pull_request.title}}
on:

on:
workflow_call:
pull_request:
branches:
- main

jobs:
# check if developer doesn't change `main` images in the values.yaml and sec-scanners-config.yaml files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: integration tests (pull)

on:
workflow_call:
workflow_run:
workflows: [ "serverless operator build (pull)" ]
types:
- completed
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
operator-integration-test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: integration tests (push)

on:
workflow_call:
push:
branches: [ "main", "release-*" ]

jobs:
operator-integration-test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: unit tests

on:
workflow_call:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]

jobs:
operator-unit-tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: upgrade tests

on:
workflow_call:
push:
branches: [ "main", "release-*" ]

jobs:
operator-upgrade-test:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: lint

on:
workflow_call:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: markdown
run-name: ${{github.event.pull_request.title}}

on:
workflow_dispatch:
push:
branches: [ "main", "release-*" ]

jobs:
documentation-link-check:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ permissions:

jobs:
unit-tests:
uses: ./.github/workflows/unit-tests.yaml
uses: ./.github/workflows/_unit-tests.yaml

gitleaks:
uses: ./.github/workflows/gitleaks.yaml
uses: ./.github/workflows/_gitleaks.yaml

images-verify:
uses: ./.github/workflows/images-verify.yaml
uses: ./.github/workflows/_images-verify.yaml

builds:
needs: [unit-tests, gitleaks, images-verify]
uses: ./.github/workflows/build-pull.yaml
uses: ./.github/workflows/_build-pull.yaml

integrations:
needs: builds
uses: ./.github/workflows/integration-tests-pull.yaml
uses: ./.github/workflows/_integration-tests-pull.yaml
6 changes: 3 additions & 3 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:

jobs:
builds:
uses: ./.github/workflows/build-push-release.yaml
uses: ./.github/workflows/_build-push-release.yaml

integrations:
needs: builds
uses: ./.github/workflows/integration-tests-push.yaml
uses: ./.github/workflows/_integration-tests-push.yaml

upgrades:
needs: builds
uses: ./.github/workflows/upgrade-tests.yaml
uses: ./.github/workflows/_upgrade-tests.yaml
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ on:

jobs:
builds:
uses: ./.github/workflows/build-push-release.yaml
uses: ./.github/workflows/_build-push-release.yaml

0 comments on commit 3849057

Please sign in to comment.