-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolving merge conflicts from 1.4.2 release
- Loading branch information
Showing
7 changed files
with
88 additions
and
60 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,66 @@ | ||
name: ci-test-golang | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "!master" | ||
pull_request: | ||
branches: | ||
- "master" | ||
# Allows for manual triggers using the `gh` CLI. | ||
workflow_dispatch: | ||
env: | ||
GO_VERSION: "1.22" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: go mod download | ||
|
||
- name: Run go vet | ||
run: go vet ./... | ||
|
||
- name: Run go test | ||
run: go test ./... -json > test-results.json | ||
|
||
- name: Publish test results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: go-results | ||
path: test-results.json | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Verify go mod tidy has been run | ||
run: | | ||
set -e | ||
go mod tidy | ||
if [ ! -z "$(git status --porcelain go.mod go.sum)" ]; then | ||
>&2 echo "Running go mod tidy modified go.mod and/or go.sum" | ||
exit 1 | ||
fi | ||
- name: Verify gofumpt has been run | ||
run: | | ||
set -e | ||
go install mvdan.cc/gofumpt@latest | ||
gofumpt -l -w . | ||
if [ ! -z "$(git status --porcelain .)" ]; then | ||
>&2 echo "Running gofumpt modified source code" | ||
exit 1 | ||
fi |
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 |
---|---|---|
|
@@ -116,6 +116,13 @@ image: build | |
$(GOX): | ||
go install github.com/mitchellh/[email protected] | ||
|
||
# ------------------------------------------------------------------------------ | ||
# linting | ||
.PHONY: fmt | ||
fmt: | ||
@[ -x "$$(command -v gofumpt)" ] || go install mvdan.cc/gofumpt@latest | ||
gofumpt -l -w . | ||
|
||
# ------------------------------------------------------------------------------ | ||
.PHONY: clean | ||
clean: | ||
|
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,5 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "v1.4.1" | ||
appVersion: "v1.4.2" | ||
description: A Helm chart to deploy the eosxd-CSI Plugin | ||
name: eosxd-csi | ||
version: 1.4.1 | ||
version: 1.4.2 |
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