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

ci: set up a GitHub Actions workflow to release minimock #83

Merged
merged 2 commits into from Jan 7, 2024
Merged

ci: set up a GitHub Actions workflow to release minimock #83

merged 2 commits into from Jan 7, 2024

Conversation

suzuki-shunsuke
Copy link
Contributor

@suzuki-shunsuke suzuki-shunsuke commented Jan 4, 2024

Close #81

The workflow is triggered when you push GitHub tags.

Test

I confirmed the workflow works well.

@suzuki-shunsuke
Copy link
Contributor Author

The workflow failed. I'm checking.

https://github.com/suzuki-shunsuke/minimock/actions/runs/7405754579/job/20149187063

  ⨯ release failed after 8s                  error=hook failed: shell: 'make all': exit status 2: go mod download
go install ./cmd/minimock
github.com/gojuno/minimock/v3/cmd/minimock: go install github.com/gojuno/minimock/v3/cmd/minimock: copying /tmp/go-build1608033171/b001/exe/a.out: open /bin/minimock: permission denied
make: *** [Makefile:28: install] Error 1
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.23.0/x64/goreleaser' failed with exit code 1

@@ -1,7 +1,4 @@
project_name: minimock
before:
hooks:
- make all
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the hook to resolve the error.

lint and test are run by pull request CI.

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review January 4, 2024 05:20
@hexdigest hexdigest merged commit 1ae0b04 into gojuno:master Jan 7, 2024
1 check passed
@suzuki-shunsuke suzuki-shunsuke deleted the ci-release branch January 7, 2024 22:50
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.

Release minimock by CI
2 participants