1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00
Commit Graph

59 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
2bf08f11a6
ci: run build/test workflow on windows too (#5263)
Maybe 3rd time is the charm!

This makes the CI build run on windows too, and fix broken tests/featuers on Windows.

Most of the changes are related to ignoring certain tests on windows, or making sure to use the right path separators.

More work to do in the future, probably!

#4293

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-16 10:30:39 -03:00
Carlos Alexandro Becker
bce9035aa2
docs: update contributing
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-19 23:33:10 -03:00
Kyle Penfound
d594cdd436
ci: daggerize test pipeline (#4969)
## What is this?

This daggerizes the lint, test, and build pipelines for Goreleaser.

## Why?

For context, the previous pass at this can be found here
https://github.com/goreleaser/goreleaser/pull/4186 . Since that time,
the DX for using Dagger has been considerably improved.

The benefit this brings to the Goreleaser project is that the test
pipeline can be run locally the same as it is run in CI without
requiring contributors to configure additional tools in their developer
environments. Additionally, by codifying the test and build execution
environments, you no longer need to be concerned with changing or
outdated Github Actions runner environments.


## How?

As a contributor, you can simply clone/fork Goreleaser and run:


`dagger functions` to see which commands are available.

To lint local code:

`dagger call --source . lint`

To run tests against local code:

`dagger call --source . test output`

To run tests against local code and get the coverage report:

`dagger call --source . test coverage-report -o ./coverage.txt`

To run tests on the main branch on Github:

`dagger call --source=https://github.com/goreleaser/goreleaser test
output`

To run tests against a PR branch on Github:

`dagger call
--source=https://github.com/goreleaser/goreleaser#pull/4958/head test
output`

To run tests against a PR branch using the dagger pipeline committed to
the main branch, without checking out goreleaser:

`dagger -m github.com/goreleaser/goreleaser call
--source=https://github.com/goreleaser/goreleaser#pull/4958/head test
output`

And so on 😃 

## Also

In addition to the Dagger code, I've updated the build.yml workflow to
use the test pipeline and updated CONTRIBUTING.md with the command to
run tests with Dagger.
Note that I did not update the Taskfile.yml to avoid breaking anything
for contributors comfortable with their existing workflows.

Do you feel that this will benefit the Goreleaser project? Would you
like to see the Dagger functions doing more/less?

---------

Signed-off-by: kpenfound <kyle@dagger.io>
Signed-off-by: Lev Lazinskiy <lev@levlaz.org>
Signed-off-by: Lev Lazinskiy <lev@dagger.io>
Co-authored-by: Lev Lazinskiy <lev@levlaz.org>
Co-authored-by: Lev Lazinskiy <lev@dagger.io>
2024-09-19 23:21:59 -03:00
Carlos Alexandro Becker
94a8de5347
build: use go 1.23 (#5082)
update everything to go 1.23

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-18 16:08:55 -03:00
Carlos Alexandro Becker
9bf6730b24
docs: improve /install 2024-07-10 01:27:11 -03:00
Oleksandr Redko
c148106c56
docs: update old Go website links (#4855)
The PR updates the links in the docs, replacing the old `golang.org`
with the new `go.dev`.
2024-05-12 13:22:56 -03:00
Carlos Alexandro Becker
f36318b6fd
docs: update CONTRIBUTING 2024-04-01 14:07:38 -03:00
Carlos Alexandro Becker
e43604f4a0
feat: use go 1.22 (#4614)
- use go 1.22

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-02-09 09:57:38 -03:00
Gabriel Cipriano
11e5682165
docs: update CONTRIBUTING.md add upx as optional prerequesite (#4427)
A test failed as I didn't had upx installed:

```
--- FAIL: TestRun (0.58s)
    upx_test.go:119: 
                Error Trace:    /home/cipri/git/goreleaser/internal/pipe/upx/upx_test.go:119
                Error:          Received unexpected error:
                                upx not found in PATH
                Test:           TestRun
FAIL
```


<!-- If applied, this commit will... -->

...

<!-- Why is this change being made? -->

...

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

...
2023-11-18 09:49:45 -03:00
Carlos Alexandro Becker
f0d0cac469
feat: update to go 1.21 (#4244)
update to go 1.21

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-08-15 11:15:04 -03:00
Olivier Sechet
5282dd915f
docs: fix links (#4183)
<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

This PR fixes the links to Go and Task installation pages.

<!-- Why is this change being made? -->

Official go site is now https://go.dev where the old link was
automatically redicting.
Task's website has been changed and the installation procedure is now on
its own page.

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
2023-07-12 09:47:07 -03:00
Carlos Alexandro Becker
81914757da
build: use go1.20 (#3757)
update everything to go 1.20

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-05 13:39:39 -03:00
Carlos A Becker
ed30c4e2db
docs: /twitter, discord, linkedin etc 2022-11-08 00:06:24 -03:00
Carlos Alexandro Becker
24178b1060
feat: permanently remove buildpacks (#3414)
removing for good!

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-05 09:42:05 -03:00
Carlos A Becker
dbc32c23ee
docs: improve sponsors page 2022-09-03 23:27:04 -03:00
Carlos Alexandro Becker
ee17c9583d
feat(ci): compile with go 1.19 (#3278)
* feat(ci): compile with go 1.19

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: fixing template test

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: improve check

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: more test and docs fixes

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: fix

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: fix

* test: fix

* fix: lint

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: docker templates

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: godoc for RequireTemplateError
2022-08-06 18:44:23 -03:00
Carlos Alexandro Becker
3c4e797150
feat: upgrade to go 1.18 (#2978)
* feat: upgrade to go 1.18

* chore: go mod tidy

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* test: fix

* fix: more updates

* test: fix test
2022-03-16 21:51:48 -03:00
Carlos Alexandro Becker
9d49c50a70
docs: use the orgs code of conduct (#2889)
* chore: code of conduct links

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: use the orgs code of conduct

we dont need to keep a copy of it in every project, a single one should do.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-08 14:20:50 -03:00
Weslei Juan Novaes Pereira
2426d2a244
docs: add another step to CONTRIBUTING.md (#2699) 2021-11-24 20:42:18 -03:00
Carlos A Becker
416d76eec4
feat: rename main branch
refs #2645
2021-11-12 17:23:32 -03:00
Carlos A Becker
3e003ac82a
docs: fix coc
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 22:30:28 -03:00
Carlos A Becker
398c9e6b3c
docs: contributing
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 11:17:34 -03:00
Carlos A Becker
20ac37aa4b
docs: contributing
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 11:17:34 -03:00
Andrey Nering
c1e61bdd1e
chore(ci): Replace Make with Task (#2557) 2021-10-05 20:05:22 -03:00
Carlos Alexandro Becker
dd5ccf7170
feat: use go 1.17 (#2408)
* feat: use go 1.17

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: go mod tidy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix failing test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* ci: increase lint timeout

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* ci: increase lint timeout

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 20:49:11 -03:00
Carlos Alexandro Becker
4f7968316f
feat(ci): run lint on actions (#2087)
* feat: lint on specific ci step

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: run on push

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: contributing

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: contributing

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: action

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:45:06 -03:00
Carlos Alexandro Becker
6b26fe4106
feat: support go 1.16 and apple silicon (#1956)
* feat: support apple silicon

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test case

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* Update .github/workflows/build.yml

Co-authored-by: Radek Simko <radek.simko@gmail.com>

* docs: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2021-02-16 22:51:11 +00:00
Carlos Alexandro Becker
da22bf8eb8
feat: use go 1.15 (#1759)
* Update to Go 1.15 image (#1758)

* feat: use go 1.15

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: remove darwin_386

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: Simon Jürgensmeyer <sj14@users.noreply.github.com>
2020-08-16 11:29:44 -03:00
Carlos Alexandro Becker
e614bf4d1d
docs: make commands copy-paste friendly (#1754)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-14 18:13:02 -03:00
Carlos Alexandro Becker
02042937ec
feat: upgrade to go 1.14 (#1372)
* feat: upgrade to go 1.14

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-04 01:24:51 -03:00
Ludovic Fernandez
5102c8a29a fix: update code.gitea.io/sdk/gitea (#1220)
* fix: invalid pseudo version for github.com/go-macaron/cors

* chore: use go1.13

* chore: update code.gitea.io/sdk/gitea

* go mod tidy
2019-10-28 22:33:01 -03:00
Carlos Alexandro Becker
44038a2f50
feat: nfpm without rpmbuild (#1187)
thanks @djgilcrease for all the hard work on nfpm
and google/rpmpack.

thanks to @jarondl who works on rpmpack as well.

great work everyone! 🚀

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-11 09:00:19 -03:00
Ricardo N Feliciano
b0630160b0 docs: correct typos in contrib doc (#1040) 2019-06-06 01:35:49 -03:00
Carlos Alexandro Becker
367c6c0d1d
docs: improve docs 2019-03-24 20:10:30 -03:00
Carlos Alexandro Becker
e1eeba292f
docs: using conventional commits (#907)
* docs: using conventional commits

* docs: format
2019-01-01 13:19:57 -02:00
Carlos Alexandro Becker
6a39e227bb docs: fix contributing 2018-10-30 23:50:55 -03:00
Carlos Alexandro Becker
020174ebd2 chore: go modules 2018-10-30 23:50:55 -03:00
Carlos Alexandro Becker
532bf4e0a3
docs: prettier changed lists from * to -
Thanks obama
2018-05-28 10:49:38 -03:00
Carlos Alexandro Becker
e079dca3ed docs: improve docs 2018-05-14 10:30:49 -03:00
Carlos Alexandro Becker
607c2e8516
docs: improving install instructions
refs https://github.com/goreleaser/goreleaser/issues/585
2018-02-28 21:03:31 -03:00
Carlos Alexandro Becker
76cfa61407
refactor: remove fpm in favor of nfpm (#567)
* refactor: remove fpm

* refactor: remove fpm

* refactor: .travis.yml

* chore: more cleanup

* chore: fix deploy
2018-02-26 18:49:58 -03:00
Carlos Alexandro Becker
a16a4a2e14
docs: fmt 2018-01-26 09:37:45 -02:00
Jess
87fb11125b Updated CONTRIBUTING.md (optional) 2018-01-24 07:59:29 +09:00
Carlos Alexandro Becker
5345aadd0d
docs: formatted all docs
Based on prettier/prettier
2017-12-10 15:17:38 -02:00
Southclaws
3142961d23 docs: Update CONTRIBUTING.md
Fixed a typo with the `go get` path using `github.com`
as the user instead of `goreleaser`.
2017-10-05 09:39:48 +01:00
Jorin Vogel
f7a0ba98e4
docs: Add Docker as dependency in CONTRIBUTING.md
Docker is also a required dev dependency to make the tests pass.

Also see #379
2017-10-02 12:36:50 +02:00
Jorin Vogel
4e73fd17d7
docs: Add commit message guidelines to CONTRIBUTING.md
Explain contributors how to craft useful commit messages.
We also use https://gitcop.com/ to enforce the formatting.

Closes #377
2017-10-01 21:32:57 +02:00
Carlos Alexandro Becker
70e042e973
building rpm packages as well 2017-08-18 19:46:40 -03:00
Carlos Alexandro Becker
5fc63d1ef0
fixed contribuing.md syntax 2017-08-18 19:13:13 -03:00
Jorin Vogel
1b8424b1db
Update contributing guide and fix local tests.
- fpm is required to pass tests.
- apex/log package needs to be available.
- gpgSign git option needs to be disabled for test repo.
  This is an issue when a developer has set gpgSign to true in
  their global .gitconfig file.
2017-07-10 13:50:05 +02:00