-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
31 changed files
with
432 additions
and
1,169 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: ci | ||
|
||
on: | ||
|
@@ -15,25 +16,25 @@ on: | |
env: | ||
VAULT_ADDR: https://vault.eng.aserto.com/ | ||
PRE_RELEASE: ${{ github.ref == 'refs/heads/main' && 'main' || '' }} | ||
GO_VERSION: "1.22" | ||
GO_RELEASER_VERSION: "v1.24.0" | ||
GO_LANGCI_LINT_VERSION: "v1.56.2" | ||
GO_VERSION: "1.23" | ||
GO_RELEASER_VERSION: "v2.3.2" | ||
GO_LANGCI_LINT_VERSION: "v1.61.0" | ||
GO_TESTSUM_VERSION: "1.11.0" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- | ||
name: Setup Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- | ||
name: Build | ||
uses: goreleaser/goreleaser-action@v4 | ||
uses: goreleaser/goreleaser-action@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -42,29 +43,25 @@ jobs: | |
args: build --clean --snapshot --single-target | ||
- | ||
name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: ${{ env.GO_LANGCI_LINT_VERSION }} | ||
args: --timeout=30m | ||
# - | ||
# name: Test Setup | ||
# uses: autero1/[email protected] | ||
# with: | ||
# gotestsum_version: ${{ env.GO_TESTSUM_VERSION }} | ||
# - | ||
# name: Test | ||
# run: | | ||
# gotestsum --format short-verbose -- -count=1 -parallel=1 -v -timeout=240s -coverprofile=cover.out -coverpkg=./... ./... | ||
|
||
push: | ||
runs-on: ubuntu-latest | ||
# when on a branch only push if the branch is main | ||
# always push when ref is a tag | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/heads/dev-') || startsWith(github.ref, 'refs/tags/v') ) | ||
if: > | ||
github.event_name == 'push' && | ||
( github.ref == 'refs/heads/main' || | ||
startsWith(github.ref, 'refs/heads/release-') || | ||
startsWith(github.ref, 'refs/heads/dev-') || | ||
startsWith(github.ref, 'refs/tags/v') ) | ||
steps: | ||
- | ||
name: Read Configuration | ||
uses: hashicorp/vault-action@v2 | ||
uses: hashicorp/vault-action@v3 | ||
id: vault | ||
with: | ||
url: https://vault.eng.aserto.com/ | ||
|
@@ -76,19 +73,17 @@ jobs: | |
kv/data/github "READ_WRITE_TOKEN" | READ_WRITE_TOKEN; | ||
- | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Setup Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- | ||
name: Setup QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Login to GitHub Packages Docker Registry | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: https://ghcr.io | ||
username: ${{ env.DOCKER_USERNAME }} | ||
|
@@ -118,7 +113,7 @@ jobs: | |
run: exit 1 | ||
- | ||
name: Push image to GitHub Container Registry | ||
uses: goreleaser/goreleaser-action@v4 | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: ${{ env.GO_RELEASER_VERSION }} | ||
|
@@ -135,7 +130,7 @@ jobs: | |
steps: | ||
- | ||
name: Read Configuration | ||
uses: hashicorp/vault-action@v2 | ||
uses: hashicorp/vault-action@v3 | ||
id: vault | ||
with: | ||
url: https://vault.eng.aserto.com/ | ||
|
@@ -151,15 +146,15 @@ jobs: | |
fetch-depth: 0 | ||
- | ||
name: Setup Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- | ||
name: Setup QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Login to GitHub Packages Docker Registry | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: https://ghcr.io | ||
username: ${{ env.DOCKER_USERNAME }} | ||
|
@@ -177,7 +172,7 @@ jobs: | |
ssh-add $HOME/.ssh/id_rsa | ||
- | ||
name: Release | ||
uses: goreleaser/goreleaser-action@v4 | ||
uses: goreleaser/goreleaser-action@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
.vscode/ | ||
|
||
go.work.sum | ||
/dist | ||
/.ext | ||
dist/ | ||
.ext/ | ||
.dev/ |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.