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

chore: migrate to GitHub Actions #88

Merged
merged 12 commits into from Dec 14, 2021
Merged

chore: migrate to GitHub Actions #88

merged 12 commits into from Dec 14, 2021

Conversation

beebzz
Copy link

@beebzz beebzz commented Dec 3, 2021

@beebzz beebzz marked this pull request as ready for review December 13, 2021 21:26
timeout-minutes: 20
strategy:
matrix:
go: [ '1.11.x', '1.12.x', '1.13.x', '1.14.x', '1.15.x', '1.16.x' ]

Choose a reason for hiding this comment

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

can remove the .xes
go: ['1.11', '1.12'..]

run: echo "GOPATH=$HOME" >> $GITHUB_ENV
- name: Set GOBIN
run: echo "GOBIN=$GOPATH/bin" >> $GITHUB_ENV
- name: Set GO111MODULE

Choose a reason for hiding this comment

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

Doesn't the GO111MODULE default to auto if not set?

Copy link
Author

Choose a reason for hiding this comment

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

It should, but not explicitly disabling GO111MODULE didn't work for version 1.16.


- name: Set GOPATH
run: echo "GOPATH=$HOME" >> $GITHUB_ENV
- name: Set GOBIN

Choose a reason for hiding this comment

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

Why set GOBIN?

Copy link
Author

Choose a reason for hiding this comment

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

In sg-go, not setting GOBIN yielded a bunch of errors with go get (whereas setting it fixed the issue).

steps:
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: 'danger'

Choose a reason for hiding this comment

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

Switch to failure instead to be consistent

CONTRIBUTING.md Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@JenniferMah JenniferMah left a comment

Choose a reason for hiding this comment

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

Where is the workflow for deployment? I forgot this was Go!

@beebzz beebzz merged commit cc3d4e5 into main Dec 14, 2021
@beebzz beebzz deleted the gh-actions branch December 14, 2021 21:52
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

4 participants