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

Add basic ci pipeline #79

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

fstaffa
Copy link

@fstaffa fstaffa commented Feb 7, 2024

Add github pipeline running build and go fmt (fail if code is not formatted correctly). Example of go fmt failure is here: https://github.com/fstaffa/synology-csi/actions/runs/7807003986/job/21294498642

Applied go fmt to all files

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would go-version-file to go.mod be better? therefore tracking of go versions is in one single place and maintainers don't need to ensure that they're updating said action each time?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go-version: 1.21
go-version-file: "go.mod"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants