Skip to content

Commit

Permalink
Add catalogd GitHub actions to the root workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Jan 3, 2025
1 parent 542ba64 commit c4ee548
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 101 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: crd-diff
name: catalogd-crd-diff
on:
pull_request:
jobs:
Expand All @@ -14,5 +14,6 @@ jobs:
go-version-file: go.mod

- name: Run make verify-crd-compatibility
working-directory: catalogd
run: make verify-crd-compatibility CRD_DIFF_ORIGINAL_REF=${{ github.event.pull_request.base.sha }} CRD_DIFF_UPDATED_SOURCE="git://${{ github.event.pull_request.head.sha }}?path=config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml"

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: demo
name: catalogd-demo

on:
workflow_dispatch:
Expand All @@ -19,4 +19,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- run: make demo-update
- name: Run Demo Update
working-directory: catalogd
run: make demo-update

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e
name: catalogd-e2e

on:
workflow_dispatch:
Expand All @@ -16,7 +16,9 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- run: make e2e
- name: Run E2e
working-directory: catalogd
run: make e2e
upgrade-e2e:
runs-on: ubuntu-latest
steps:
Expand All @@ -25,4 +27,5 @@ jobs:
with:
go-version-file: "go.mod"
- name: Run the upgrade e2e test
working-directory: catalogd
run: make test-upgrade-e2e
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: go-apidiff
name: catalogd-go-apidiff

on:
merge_group:
Expand All @@ -18,4 +18,5 @@ jobs:
go-version-file: "go.mod"
id: go
- name: Run go-apidiff
working-directory: catalogd
uses: joelanford/go-apidiff@main
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: catalogd-release

on:
workflow_dispatch:
Expand Down Expand Up @@ -53,11 +53,13 @@ jobs:
echo IMAGE_TAG="$(git describe --tags --always)" >> $GITHUB_ENV
fi
- name: Create release manifests
working-directory: catalogd
run: |
echo VERSION="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
make quickstart
- name: Run goreleaser
working-directory: catalogd
run: make release
env:
GITHUB_TOKEN: ${{ github.token }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: sanity
name: catalogd-sanity

on:
workflow_dispatch:
Expand Down Expand Up @@ -26,4 +26,5 @@ jobs:
with:
go-version-file: "go.mod"
- name: Run lint checks
working-directory: catalogd
run: make lint GOLANGCI_LINT_ARGS="--out-format github-actions"
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: catalogd-tilt

on:
pull_request:
paths:
- '.bingo/**'
- '.github/workflows/tilt.yaml'
- 'api/**'
- 'cmd/**'
- 'config/**'
- 'internal/**'
- 'pkg/**'
- 'Tiltfile'
- 'catalogd/.bingo/**'
- 'catalogd/.github/workflows/catalogd-tilt.yaml'
- 'catalogd/api/**'
- 'catalogd/cmd/**'
- 'catalogd/config/**'
- 'catalogd/internal/**'
- 'catalogd/pkg/**'
- 'catalogd/Tiltfile'
merge_group:

jobs:
Expand All @@ -17,15 +19,14 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: operator-framework/tilt-support
path: tilt-support
- uses: actions/checkout@v4
with:
path: catalogd
fetch-depth: 0
- name: Clone tilt-support
run: |
git clone https://github.com/operator-framework/tilt-support catalogd/../tilt-support
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: go.mod
- name: Install Tilt
run: |
TILT_VERSION="0.33.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit
name: catalogd-unit

on:
workflow_dispatch:
Expand All @@ -16,9 +16,13 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- run: make test-unit

- name: Unit Test
working-directory: catalogd
run: make test-unit

- uses: codecov/codecov-action@v5
working-directory: catalogd
with:
disable_search: true
files: cover.out
Expand Down
19 changes: 0 additions & 19 deletions catalogd/.github/dependabot.yml

This file was deleted.

10 changes: 0 additions & 10 deletions catalogd/.github/pull_request_template.md

This file was deleted.

19 changes: 0 additions & 19 deletions catalogd/.github/workflows/add-to-project.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions catalogd/.github/workflows/go-verdiff.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions catalogd/.github/workflows/pr-title.yaml

This file was deleted.

0 comments on commit c4ee548

Please sign in to comment.