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

ci: group workflows #103

Merged
merged 1 commit into from
Mar 31, 2023
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
26 changes: 0 additions & 26 deletions .github/workflows/codecov.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/k8s-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: k8s-integration
name: tests

on:
push:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release-dry-run.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release-dry-run
name: release

defaults:
run:
Expand All @@ -9,9 +9,11 @@ on:
push:
branches:
- main
tags:
- v*

jobs:
goreleaser:
dry-run:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
Expand Down
31 changes: 27 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,33 @@ on:
- v*

jobs:
goreleaser:
ensure-dry-run:
runs-on: ubuntu-latest
steps:
- name: Ensure release/dry-run PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: 'release/dry-run'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
ensure-tests:
runs-on: ubuntu-latest
steps:
- name: Ensure tests PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
publish:
runs-on: ubuntu-latest
needs:
- ensure-dry-run
- ensure-tests
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
Expand All @@ -30,8 +55,6 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: release version
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: release dry-run
run: make release
- name: Login to GHCR
uses: docker/login-action@v2
with:
Expand All @@ -48,7 +71,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
homebrew:
runs-on: ubuntu-latest
needs: [ goreleaser ]
needs: [ publish ]
steps:
- uses: actions/checkout@v3
with:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ jobs:
run: make test-lint-all
- name: lint make-sublinters
run: make test-sublinters

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .env
- uses: actions/setup-go@v3
with:
go-version: "${{ env.GOLANG_VERSION }}"
- run: make modvendor
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: .cache/tests/coverage.txt
2 changes: 1 addition & 1 deletion .github/workflows/wip.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wip
name: github

on:
pull_request:
Expand Down