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 CI workflows #73

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dhia-gharsallaoui
Copy link

No description provided.

@cosmic-chichu
Copy link
Contributor

@dhia-gharsallaoui maybe we can use the mage file in CI flow? LGTM otherwise!

cosmic-chichu
cosmic-chichu previously approved these changes Sep 21, 2022
@vigith vigith requested a review from jbguerraz September 22, 2022 00:34
run: go build -v ./...

- name: Test
run: go test -v ./...
Copy link
Collaborator

Choose a reason for hiding this comment

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

use mage, e.g., mage test and same for build too

Copy link
Author

@dhia-gharsallaoui dhia-gharsallaoui Sep 22, 2022

Choose a reason for hiding this comment

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

Done to test, but I kept the go build to build in multi-OS.
WDYT @vigith @cosmic-chichu ?

@cosmic-chichu
Copy link
Contributor

@dhia-gharsallaoui fixed magefile for build #74

- uses: actions/checkout@v3

- name: Build
run: go build -v ./...
Copy link
Contributor

@cosmic-chichu cosmic-chichu Sep 23, 2022

Choose a reason for hiding this comment

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

we could use mage -v build here, since #74 is merged

Copy link
Author

Choose a reason for hiding this comment

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

Done

strategy:
fail-fast: false
matrix:
goos: ['android', 'linux', 'solaris', 'illumos', 'dragonfly', 'freebsd', 'openbsd', 'plan9', 'windows', 'darwin', 'netbsd']
Copy link
Author

Choose a reason for hiding this comment

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

@cosmic-chichu we can limit the OS list and go version in build. Any proposition ?

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.

3 participants