-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(*): refactor to use workflow calls (#197)
Adds: - `ci-main.yml`: runs specific jobs on merge to `main` - `ci-pr.yml`: runs specific jobs on pr to `main` If we like this setup, we can also: - add a `ci-release.yml`, which would run on each release - parameterize `goreleaser.yml`. on merge to `main`, we'd push the `main` image, and on releases we'd push `latest` task: none --------- Co-authored-by: Pavel Nikolov <pavelnikolov@users.noreply.github.com>
- Loading branch information
1 parent
70b086c
commit d047da5
Showing
9 changed files
with
50 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: ci main | ||
# continuous integration on push to main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
pre-commit: | ||
uses: ./.github/workflows/pre-commit.yml | ||
go-tests: | ||
uses: ./.github/workflows/gotest.yml | ||
go-lint: | ||
uses: ./.github/workflows/golangci-lint.yml | ||
go-releaser: | ||
uses: ./.github/workflows/goreleaser.yml | ||
needs: [pre-commit, go-tests, go-lint] | ||
secrets: inherit | ||
e2e: | ||
uses: ./.github/workflows/e2etest.yml | ||
needs: [go-releaser] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: ci pr | ||
# continuous integration on pull requests to main | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
pre-commit: | ||
uses: ./.github/workflows/pre-commit.yml | ||
go-tests: | ||
uses: ./.github/workflows/gotest.yml | ||
go-lint: | ||
uses: ./.github/workflows/golangci-lint.yml |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters