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

Migrate Travis CI to Github Actions #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

berabulut
Copy link

@berabulut berabulut commented Nov 21, 2021

If "tip" is really necessary I can update the action.

Sample Pull Request check: berabulut#1

# events but only for the master branch
on:
pull_request:
branches:
Copy link
Owner

Choose a reason for hiding this comment

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

Branches: is probably not necessary

Copy link
Author

Choose a reason for hiding this comment

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

Done.

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.11' # The Go version to download (if necessary) and use.
Copy link
Owner

Choose a reason for hiding this comment

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

Lets use tip if possible

Copy link
Author

Choose a reason for hiding this comment

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

I've used this to install tip, there is no easy way to get tip version directly.
actions/setup-go#21

# Run vet & lint on the code
- name: Run vet & lint
run: |
go vet -x ./...
Copy link
Owner

Choose a reason for hiding this comment

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

Ideally these should be separate steps

Copy link
Owner

Choose a reason for hiding this comment

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

Because you don’t set -e, any failure won’t terminate the script

Copy link
Author

Choose a reason for hiding this comment

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

Done.

- name: Run tests
run: |
go test -v ./...
go test -covermode=count -coverprofile=profile.cov
Copy link
Owner

Choose a reason for hiding this comment

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

Not all these are tests + ideally should be separate steps

Copy link
Author

Choose a reason for hiding this comment

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

Done.

Update Github Action

Test GH Action

Test GH Action

Update GH Action

Update GH Action

Update GH Action

Update GH Action

Update GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Test GH Action

Update GH Action

Update GH Action

Update GH Action

Update GH Action
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.

None yet

2 participants