Commit Graph
100 Commits
Author SHA1 Message Date
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
7c6237d93f ci: deduplicate running workflows (#1751)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-23 19:18:38 +00:00
b6718fdf5d fix: try finding a socket, otherwise fail, respect user choice (#1745)
* fix: try finding a socket, otherwise fail, respect user choice

* Update cmd/root.go

Co-authored-by: Jason Song <[email protected]>

* Update cmd/root.go

Co-authored-by: Jason Song <[email protected]>

---------

Co-authored-by: Jason Song <[email protected]>
2023-04-23 19:02:56 +00:00
RandGitHub 148a545021 build(deps): update go-git to ce62f3e9ff86270538a514a68d3bd5563a733e3b (#1725) 2023-04-11 21:39:36 +00:00
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
4b56aced15 docs: remove help section (#1648)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-23 18:51:01 +00:00
RandGitHub 8790c9b8e6 fix: add GITHUB_STEP_SUMMARY (#1607) 2023-02-23 15:24:44 +00:00
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
01952d05c8 cI: make stalebot less annoying (#1587)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-29 16:44:53 +00:00
RandGitHub e70b968924 fix: use docker images from dockerhub (#1249) 2022-07-08 00:21:51 +00:00
RandGitHub 52f5c4592c fix: allow TimeoutMinutes to be expression (#1217) 2022-06-16 20:57:19 +00:00
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2aa0699aec refactor: remove github.com/pkg/errors dependency (#1077)
* refactor: split out common/git

* refactor: move git options to separate func

* refactor: remove github.com/pkg/errors dependency

* fix(golangci-lint): forbid github.com/pkg/errors

* style: fix typo

* style: fix typo

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-06-10 21:16:42 +00:00
RandGitHub 8bc3a07dad governance: fix bug report rendering (#1186) 2022-05-26 21:46:12 +00:00
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ebb408f373 fix: remove composite restrictions (#1128)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-23 20:27:12 +00:00
RGitHubBjörn BrauerChristopherHXmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
7704033ec6 governance: new issue templates (#1048)
Co-authored-by: Björn Brauer <[email protected]>
Co-authored-by: ChristopherHX <[email protected]>

Co-authored-by: Björn Brauer <[email protected]>
Co-authored-by: ChristopherHX <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-23 19:13:22 +00:00
RGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
507ae61d1b ci(choco): update chocolatey to 1.1.0 (#1164)
* fix(editorconfig,megalinter): enforce space style

* ignore install.sh since it's auto-generated
* simplify editorconfig

* ci(choco): update chocolatey to 1.1.0

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-23 19:05:49 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
69691c88b3 feat: add ubuntu-22.04 (#1150)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-17 19:11:33 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
dfdafd9e85 feat/bug-report-extended (#1163)
* fix: connect to docker **after** checking configs

* feat: add vcs build info

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-17 19:02:15 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>Casey Lee
e15f7a51c6 docs(README): remove go install (#1123)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Casey Lee <[email protected]>
2022-04-19 19:51:26 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>Casey Lee
25ebaf4e7b ci: always grab latest go version (#1124)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Casey Lee <[email protected]>
2022-04-19 19:43:30 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>Casey Lee
40492fea32 tests: remove runTestJobFile (#1127)
This prevented JetBrains GoLand from recognising subtests and treated
it all as single big test, VSCode seems to be still broken in that regard

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Casey Lee <[email protected]>
2022-04-19 19:35:42 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
72dd2d344c tests(runner): move arm64 test to own func (#1095)
Prevents random failing of all other runs when qemu binfmt
is not set up

Signed-off-by: Ryan <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-04-05 15:41:36 +00:00
RyanandGitHub afb23a2891 build(deps): bump deps which dependabot doesn't want to (#1107)
Signed-off-by: Ryan <[email protected]>
2022-04-05 15:30:40 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
d4272bd9fe feat: add option to specify git remote name (#1104)
fixes https://github.com/nektos/act/issues/1099
fixes https://github.com/nektos/act/issues/983

Signed-off-by: Ryan <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-04-04 17:53:08 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
b3bd268e45 fix: return error on reusable workflows (#1093)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-30 17:20:45 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
48db7d9c9d deps: bump go.mod to go1.18 (#1088)
* deps: bump go.mod to go1.18

* deps: go mod tidy

* docs: update Go version requirement

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-30 17:06:04 +00:00
RyanandGitHub 8d41f7aa6b fix(editorconfig): correct braces (#1094)
Signed-off-by: Ryan <[email protected]>
2022-03-30 16:55:20 +00:00
RyanandGitHub 11c3fb39dd ci: bump go to 1.18 (#1087) 2022-03-29 20:10:32 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
24422bf4e4 fix: don't overwrite with empty cmd/entrypoint (#1076)
Co-authored-by: ChristopherHX <[email protected]>

Signed-off-by: Ryan <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-29 18:00:52 +00:00
RyanandGitHub 31d3603173 deps: remove shlex (#1086) 2022-03-29 15:55:40 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
de81979800 fix: set default version string (#1070)
for when people don't specify version via -ldflags

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-29 09:37:38 +00:00
RyanandGitHub c4db165d2d deps: bump go-git (#1057) 2022-03-25 16:16:31 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
5d7027dc3f feat: add bug-report flag (#1056)
* feat: add bug-report flag

* fix: use docker host CPU count

* feat: add config files to bug-report

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-22 19:26:10 +00:00
RyanandGitHub 932ad0ef6a ci(stalebot): ignore feature requests (#1017) 2022-03-14 08:21:06 -07:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3db3c73723 fix: trim whitespace from actrc (#1024)
fixes #985

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-02 21:41:57 +00:00
RyanandGitHub ad06f5dfb8 fix: print line after password prompt (#1014)
fixes https://github.com/nektos/act/issues/979
2022-02-25 16:47:49 +00:00
RyanandGitHub 4f8da0a51c ci(Mergify): configuration update (#972)
Signed-off-by: Ryan <[email protected]>
2022-01-27 11:38:17 -08:00
RyanandGitHub 557dc755b8 ci(Mergify): configuration update (#966)
* ci(Mergify): configuration update

Signed-off-by: Ryan <[email protected]>

* fix: check for maintainers only
2022-01-26 09:12:42 -08:00
RyanandGitHub 518148d162 fix(goreleaser): add append mode for release notes (#962)
this should properly update release notes when release is created via GitHub UI
2022-01-21 07:47:39 -08:00
RyanandGitHub 4e6cddf80a feat(goreleaser): format changelog, add prereleases (#942) 2022-01-01 17:04:37 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
e9c4609dca fix: update install.sh (#937)
* fix: update install.sh

Signed-off-by: hackercat <[email protected]>

* fix: chmod +x install.sh

Signed-off-by: hackercat <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-27 16:18:30 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
558081242c feat: add node16 support (#922)
* feat: add node16 support

Signed-off-by: hackercat <[email protected]>

* feat: bump images to node16

Signed-off-by: hackercat <[email protected]>

* lint(editorconfig): ignore *.md due to mixed style

Signed-off-by: hackercat <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-22 19:34:18 +00:00
RyanandGitHub 2ef30c3776 lint(megalinter): disable markdown link check (#938) 2021-12-22 11:11:16 -08:00
RyanandGitHub 9be6a58c0e ci: replace superlinter with megalinter (#923)
* ci: replace superlinter with megalinter

Signed-off-by: hackercat <[email protected]>

* fix: apply lint recommendations

Signed-off-by: hackercat <[email protected]>
2021-12-22 09:29:43 -08:00
RyanandGitHub adabf2a202 fix: rework setupShellCommand (#930)
* fix: rework `setupShellCommand`

* move all logic to separate function so we can test that later
* split `step.Shell` and `step.WorkingDirectory` setup into own funcs
* general cleanup of function
* use `ActPath` to not collide with checked out repository
* use `shellquote.Split()` instead of `strings.Fields()` for better command split
* replace single string concat with `fmt`

Signed-off-by: hackercat <[email protected]>

* lint(editorconfig): ignore *_test.go due to mixed style

Signed-off-by: hackercat <[email protected]>
2021-12-22 06:37:16 +00:00
RyanandGitHub 4e0ba618d3 fix: clarify --reuse and --rm flags (#929)
* fix: clarify --reuse and --rm flags

Signed-off-by: hackercat <[email protected]>

* lint(editorconfig): ignore *.md due to mixed style

Signed-off-by: hackercat <[email protected]>
2021-12-16 05:11:56 +00:00
RyanandGitHub cad4bc8c36 ci(Mergify): configuration update (#924) 2021-12-11 14:41:27 -08:00
RyanandGitHub a545ceaec9 Fix and test choco action (#911)
* ci(choco): fix action

Signed-off-by: hackercat <[email protected]>

* fix(editorconfig): force style for all files, fix typo

Signed-off-by: hackercat <[email protected]>

* ci(choco): test choco action

Signed-off-by: hackercat <[email protected]>

* fix(editorconfig): unformat Dockerfile/sh

Signed-off-by: hackercat <[email protected]>
2021-12-08 10:49:33 -08:00
RyanandGitHub 6ebcac3771 ci(choco): fix chocolatey docker build (#903)
Signed-off-by: hackercat <[email protected]>
2021-11-24 09:27:38 -08:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
8ad6c07083 feat: add option for docker image rebuild (#878)
Adds option to rebuild local action docker images

Fixed up README due to missing flags after
PR #714 and #716

Signed-off-by: hackercat <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-24 07:51:37 -08:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
96cf907c5e Fix regex for GITHUB_ENV parsing (#893)
* fix: correct env pattern regex

GitHub Actions allows for envvars to contain

Signed-off-by: hackercat <[email protected]>

* format: format and typo fix

Signed-off-by: hackercat <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-19 17:36:50 +00:00
RyanandGitHub 4ae71b5878 Revert "feat: allow existing logger from context (#859)" (#890)
This reverts commit 603cf56878.
2021-11-19 14:42:39 +00:00
RyanandGitHub df4ef4de80 docs: add brew installation from HEAD (#886)
For folks who need latest fixes or "live on the edge"
2021-11-16 20:48:40 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
12fa4d703d fix: correctly unmarshal entrypoint (#876)
Signed-off-by: hackercat <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-13 19:43:31 +00:00
RyanandGitHub ec34eb9532 fix: use docker lib for image ref parsing (#877)
Signed-off-by: hackercat <[email protected]>
2021-11-13 19:35:45 +00:00
RyanandGitHub 3054f3ea14 fix: cleanup unused actions (#873)
Signed-off-by: hackercat <[email protected]>
2021-11-12 15:21:45 -08:00
RyanandGitHub 099af5e6a8 fix: interpolate env for step actions (#872)
Signed-off-by: hackercat <[email protected]>
2021-11-12 15:21:18 -08:00
RyanandGitHub cd24df5727 ci(golangci-lint): switch to latest (#870)
* ci(golangci-lint): switch to latest

remove schema override since it was fixed in upstream

Signed-off-by: hackercat <[email protected]>

* fix: apply lint fixes
2021-11-12 12:48:10 -08:00
RyanandGitHub 80db062472 ci(mergify): fix deprecated strict mode (#862) 2021-11-04 07:23:22 -07:00
RyanandGitHub e9ae7894e3 fix: set sh as default shell for containers (#853)
* fix: set default shell for containers to sh

This matches GitHub Actions behaviour where,
runners use bash since it's guaranteed to exist there
while containers use sh for compatibility

* tests: fixup for default shell
2021-11-03 11:47:47 -07:00
RyanandGitHub aad724c87a ci: remove macOS tests (#860)
Running Docker on non-Linux platforms is very painful,
especially in CI. It's better to remove macOS for now,
until a better implementation is present.

Signed-off-by: hackercat <[email protected]>
2021-11-03 11:46:15 -07:00
RyanandGitHub 2319eb210f docs: fix brew formula link (#846)
currently it points to nektos owned tap but instruction is for homebrew-core
2021-10-31 13:34:15 +00:00
f8ddfca6f7 goreleaser: Switch to latest and drop Homebrew config (#848)
* ci: unpin goreleaser version

homebrew issue has been fixed

* ci: drop homebrew from goreleaser

act has been for quite a long time in homebrew-core
and it supports all macos/linux so there is no
reason for us to have separate tap, as it might
confuse some users

Co-authored-by: Casey Lee <[email protected]>
2021-10-24 09:36:09 -07:00
RyanandGitHub 977b526384 ci: switch macos job to macos-10.15 (#849) 2021-10-23 18:37:33 -07:00
RyanandGitHub a0d360236e fix: rewrite StepContext env (#832)
* fix: rewrite StepContext env

step env from workflow should be last one to be written
fixes https://github.com/nektos/act/issues/777

* test: verify env correctness

* fix: move test into existing workflow
2021-09-28 01:18:59 +00:00
RyanandGitHub 6c60af7677 fix: rewrite how image env is merged (#828)
* fix: rewrite how image env is merged

* test: add test for extractFromImageEnv
2021-09-27 19:01:14 +00:00
RyanandGitHub 7a426a0f37 refactor: re-implement embed without "unused" import (#830)
* refactor: re-implement `embed` without "unused" import

* fix(gitignore): ignore local docker registry data
2021-09-27 17:33:14 +00:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
c2c8b525f8 Add reading environment from Docker image (#771)
* fix: read envvars from image definition

* fix: add test

* fix: sort slices

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-26 16:37:53 +00:00
4d552e65ce fix: add simple concurrency limit (#823)
Co-authored-by: Casey Lee <[email protected]>
2021-09-26 16:21:12 +00:00
RyanandGitHub b1e4844aac ci: pin goreleaser version (#825) 2021-09-26 09:05:43 -07:00
RyanandGitHub 5a09eb24ca Bump all dependencies (and fix dependabot mess) (#822)
* build(deps): bump all Go deps

* build(deps): bump actions/setup-go & actions/stale
2021-09-25 12:13:22 -07:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3c1454825d fix: mount volume for workflow info (#776)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-24 13:32:22 +00:00
RyanandGitHub 17652ce80e Remove ubuntu-16.04 and add missing links for nix/go (#821)
* fix: remove ubuntu-16.04

* fix: add missing links for nix/go

* fix: remove specific platform versions
2021-09-22 19:43:58 +00:00
RyanandGitHub 12928a0ac6 feat: add Dependabot config (#797)
Add Dependabot to keep dependencies up to date
2021-09-08 13:46:45 +00:00
4c645b3ed9 Update Go to 1.17 (#787)
* ci: bump Go version & move it to env

* go.mod: bump golang.org/x/term

* ci: capture Windows arm64 binary

Co-authored-by: Casey Lee <[email protected]>
2021-08-30 11:06:20 -07:00
RyanandGitHub 37aaec81f4 feat: improve list (#786) 2021-08-30 15:38:03 +00:00
RyanandGitHub de44a505da fix: copy whole action dir to container (#774)
fixes https://github.com/nektos/act/issues/754
this will prevent actions from failing that use resources outside
of the action directory
2021-08-10 22:21:52 -07:00
RyanandGitHub bea32d5651 Add proper support for working-directory & fix command builder (#772)
* fix: align other Docker executors to print action

* fix: formatting

* fix: add proper workdir support

* fix: replace script filepath after slice creation

* fix: match substring so it works for pwsh

+ rename containerPath to scriptPath to reflect what value it contains
2021-08-10 19:40:20 +00:00
RyanandGitHub 5c841e22ab Update docs, file formatting and docker images (#766)
* docs: fix wrong licence link

* fix: add more formatting settings, reformat all

feat: add vscode extensions recommendations

* docs: update contributing documentation

* fix: remove unnecessary comment

it was due to broken checkout

* docs: rework installation section

it has been brought up few times, new style should be easier
to understand

* docs: update images provided by catthehacker

* docs: replace 18.04 with recent image

* fix: add final new line
2021-08-09 09:07:26 -07:00
RyanGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
94fd0ac899 Simplify Matrix decode, add defaults for fail-fast and max-parallel, add test (#763)
* fix[workflow]: multiple fixes for workflow/matrix

fix[workflow]: default `max-parallel`
fix[workflow]: default `fail-fast`, it's `true`, not `false`
fix[workflow]: skipping over the job when `strategy:` is defined but `matrix:` isn't (fixes #625)
fix[workflow]: skip non-existing includes keys and hard fail on non-existing excludes keys
fix[workflow]: simplify Matrix decode (because I "think" I know how `yaml` works) (fixes #760)
fix[tests]: add test for planner and runner

* fix(workflow): use yaml node for env key

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-09 15:35:05 +00:00
Ryan (hackercat)andGitHub 1cf422e411 fix: warn Apple M1 (arm64) users (#743)
* fix: warn Apple M1 (arm64) users

* fix: missing dep

* fix: linting

* fix: linting (again)
2021-06-23 18:09:27 +00:00
a9fe038347 Update images, fix extrapath (#723)
* fix: typo

* fix: remove debug for git references

it generates a massive amount of logs

* feat: read values from env

allows to test act on GHA when it's not a main repo

* fix: merge extrapath with PATH

* fix(tests): add additional shells for testing

* fix(image): update images

pin node to major version only, current node version: 12.22.1
replace most images with `node:12-buster-slim` to prevent
errors on macOS runner due to DockerHub pull limit
replace ocaml image

Co-authored-by: Casey Lee <[email protected]>
2021-06-10 23:12:05 +00:00
Ryan (hackercat)andGitHub 2261204c65 fix: wrong perms (#726)
if someone is using image with a non-root user, they will get a permission denied since only root has write perms
2021-06-09 16:08:39 -07:00
Ryan (hackercat)andGitHub 6550eb7f25 fix: update codecov action (again) (#731) 2021-06-09 10:30:16 -07:00
Ryan (hackercat)andGitHub 05bce00e93 fix: update codecov action (#727) 2021-06-07 10:26:28 -07:00
Ryan (hackercat)andGitHub 96a0564526 fix: don't replace empty secrets (#725) 2021-06-07 13:54:12 +00:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
33ccfa6f3b Switch to interface{} instead of map[string]... (#700)
* fix: change `env` to be an interface

allows to use GitHub functions like `fromJson()`

* fix: change matrix to an interface instead of map

This allows to use GitHub functions like `fromJson()` to create dynamic
matrixes

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-06-06 14:53:18 +00:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
fa93f4d5e7 fix: update issue template (#722)
* fix: update issue template

add additional information to be provided by user that should help in troubleshooting

* fix: move markdownlint config and link it

done it so the markdownlint-cli stops shouting about issues

* feat: add Matrix link

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-06-04 20:16:01 +00:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
d794e2fe4c Move actions path outside of workdir (#701)
* feat: add option to specify user for exec

* fix: move actions to static path outside workdir

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-24 17:09:03 +00:00
Ryan (hackercat)andGitHub 490039975f Add arm64/arm and capture all snapshots (#699)
* fix: format `.goreleaser.yml`

* feat: add `arm64`/`arm` builds

* feat: capture all binaries built by goreleaser

`upload-artifact` actions will run only on GitHub Actions due to
`ACTIONS_RUNTIME_TOKEN` requirement

* fix: remove `windows/arm/6`
2021-05-23 08:32:55 -07:00
Ryan (hackercat)andGitHub 799098b0e6 feat: add option for custom socket path (#698) 2021-05-23 14:43:09 +00:00
Ryan (hackercat)andGitHub f571290b25 refactor: remove gotest.tools (#688)
* refactor: remove `gotest.tools`

* remove all references to `gotest.tools` and replace it with
  `github.com/stretchr/testify` which was originally used for tests
* bump `golangci-lint` version
* add `depguard` and `importas` to prevent import of unwanted packages
* add custom schema and information about config since
  schemastore.org has broken schema for `golangci-lint` config

* fix: handle more error cases
2021-05-17 23:14:49 -07:00
Ryan (hackercat)andGitHub aa68181f6b refactor: return more errors, add more tests (#679)
adding more tests
returns same message for short SHA format like GitHub Actions
refactor error checking
add more errors :)
2021-05-08 03:29:03 +00:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
cc4e23d96c fix: remove Windows issue from README.md (#675)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-06 13:16:24 -07:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
a6a865e973 fix: replace gopass lib with golang.org/x/term (#674)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-06 20:13:14 +00:00
Ryan (hackercat)GitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
37a98f134a feat: add go install instruction (#672)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-06 13:43:50 +00:00
Ryan (hackercat)andGitHub 8153dc92e5 Fix environment variables and move envs.txt/event.json to fixed location (#667)
* fix: environment variables sourcing from `/etc/environment`

* fix: move `envs.txt` & `event.json` to `/tmp/`

Since #635 `envs.txt` is not copying properly when running `act` in WSL2
Moving it to fixed location resolves that.
2021-05-05 23:11:43 +00:00
cec63488f3 Add super-linter + fix lint issues (#650)
* feat: bump `golangci-lint`, add `super-linter`, replace outdated linter

Bump `golangci-lint` version.
Add `super-linter` to lint other languages.
Go linter is disabled because it's currently broken:
https://github.com/github/super-linter/pull/370
Replacing `scopelint` with `exportloopref`: "[runner] The linter
'scopelint' is deprecated (since v1.39.0) due to: The repository of the
linter has been deprecated by the owner.  Replaced by exportloopref."
Fixed formatting in `.golangci.yml`
Add addtional linters:
  `misspell`: purely style, detects typos in comments
  `whitespace`: detects leading and trailing whitespace
  `goimports`: it's gofmt + checks unused imports

* fix: lint/fix `go` files

* fix: lint with `standardjs`

* fix: lint/fix with `markdownlint`, make template more verbose

* feat: add lint stuff to makefile

* fix: `UseGitIgnore` formatting

* fix: lint/fix `README.md`

Co-authored-by: Casey Lee <[email protected]>
2021-05-03 09:52:03 -07:00
Ryan (hackercat)andGitHub 780f60a1e6 fix: ignore act binary built when using make (#654) 2021-05-03 08:26:12 -07:00
806bc4d999 refactor: NewWorkflowPlanner (#648)
feat: add flag `--no-recurse` to disable recursion when reading workflows from directories
feat: added more tests to `TestPlanner`, renamed `TestJobFileInfo` to more appropriate name `WorkflowPlanTest`
style: changed error message to lowercase, added single quotes for better visibility

Co-authored-by: Casey Lee <[email protected]>
2021-05-03 07:57:24 -07:00
b04d762614 feat: Don't push pkg/runner/act/ where actions cache is stored (#620)
This will prevent pushing `act` cache that happens occasionally.

Co-authored-by: Casey Lee <[email protected]>
2021-05-03 07:54:51 -07:00
Ryan (hackercat)andGitHub 08141f5b00 fix: update readme with more relevant/updated information (#630) 2021-05-03 07:41:30 -07:00
7ae9916de0 Add option to allow files/directories in .gitignore to be copied to container (#537)
* disable gitignore for actions

* feat: Add option to allow/disallow paths specified in .gitignore

Co-authored-by: Alan Birtles <[email protected]>
2021-05-03 07:37:20 -07:00