Commit Graph
38 Commits
Author SHA1 Message Date
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
Ryan (hackercat)andGitHub f32babb51d fix: reworked container architecture (#619)
- Don't set architecture, let Docker host decide it's own platform,
  remove `runtime` dependency and don't show default in `--help`
- Remove most tests, we need to check only once if it works on
  different platform
- Rename `DeleteImage` to `RemoveImage` to conform to existing
  function in `docker` cli, added options to specify `force` and
  `pruneChildren`
2021-05-02 08:15:13 -07:00
Ryan (hackercat)andGitHub 3e768cd916 feat: Speeding up workflows (#643)
* fix: rework macOS test so it's faster

* feat: add go module caching
2021-05-02 08:13:30 -07:00
hackercatandGitHub 4125812a63 Refactor .actrc locations and default image survey (#600)
* refactor: move survey/cfgs into own funcs, read XDG base dirs for config

Moved actrc locations to own func since it can be reused.
Moved survey part to own func due to high cyclomatic complexity.
Added XDG config dir to config locations.
Replaced using HOME envvar with go-homedir module since it's already
an indirect dependency and handles home directories better
for each GOOS.

* refactor: use `go-homedir`, check if XDG var is not empty
2021-04-05 08:51:13 -07:00
hackercatandGitHub 94d736a602 fix: fail workflow if the job name is invalid (#596) 2021-04-02 07:01:45 -07:00
hackercatandGitHub 5044ec6c43 fix: remove HOME env var (#594) 2021-04-01 14:01:01 -07:00
hackercatandGitHub 25779af4bf fix: return error if both run:/uses: keys are used (#593)
fixes https://github.com/nektos/act/issues/536
2021-04-01 11:36:41 -07:00
hackercatandGitHub 780a8a061c fix: use new platforms after survey, check working dir for .actrc (#577) 2021-03-29 07:58:00 -07:00
f5a02581c2 Add code testing on MacOS (#563)
* feat: add code testing on macos

* change name of test job

Keep the test job named `test` to align with current branch protection checks

Co-authored-by: Casey Lee <[email protected]>
2021-03-29 07:55:51 -07:00
hackercatandGitHub 72f2d2de51 fix: update ubuntu-latest to point to ubuntu-20.04 (#580)
GitHub Actions switched `ubuntu-latest` to `ubuntu-20.04`
Ref:
  https://github.com/actions/virtual-environments/issues/1816
  https://github.com/actions/virtual-environments/pull/2852
2021-03-28 21:47:07 -07:00
hackercatandGitHub 29b3d43988 fix: hardcode ubuntu-latest for ImageOS envvar (#579)
Hardcode current `ubuntu-latest` since we have no way to check that 'on the fly'
2021-03-28 21:46:09 -07:00
hackercatandGitHub f3b53d8eca fix: pass sc.Env through common.Logger to hide secrets (#578)
Currently all secrets are exposed when running with `--verbose`/`-v` option
2021-03-28 21:45:07 -07:00
hackercatandGitHub b438b836ea fix: invoke login shells to source /etc/environment (#570) 2021-03-28 21:35:01 -07:00
6c258cf40d Add option to run custom architecture (container platform) (#525)
* Add QEMU to run different architectures

* Update dependencies in `go.mod`

* Add `--container-architecture` flag to specify custom image architecture

Co-authored-by: Casey Lee <[email protected]>
2021-03-28 21:08:40 -07:00
hackercatandGitHub 41b03b581c fix: add ImageOS env var based on running platform (#571) 2021-03-17 17:14:08 -07:00
hackercatandGitHub 09679f0156 Update test workflows and improve expression_test.go/run_context_test.go (#560)
* fix: give case insensitive secret more meanigful name

* refactor: use `string` in generating `env:` and `steps:` for workflows

Smaller text generation is much better to read with normal strings than
raw string literals.

* feat: sort keys for `env:` so it's always in specific order

* fix: update test workflows
2021-03-12 16:25:10 -08:00
hackercatandGitHub eb2774275f Fix tests on Windows (#562)
* fix: replace `\` with `/` in git ref to fix `git_test.go` on windows

Paths on Windows use backslash (`\`) as directory separator and this breaks `TestGitFindRef()`.
Replacing `\` with `/` in git ref fixes that issue.

* fix: replace `gopkg.in/godo.v2/glob` with std library `path/filepath`

`github.com/go-godo/godo` lib has been last updated in 2016 and it also
depends on another outdated lib `github.com/MichaelTJones/walk` with
last update in 2016. This also fixes `permission_denied` errors on
Windows (and perhaps Linux in some specific cases). I'm not aware of
any performance improvement or drawback because of that change.
2021-03-12 16:23:03 -08:00
hackercatandGitHub 34dc2dc15c Update Docker images (#524) 2021-02-23 09:49:24 -08:00
Cat™andGitHub 661aa08235 Add GitHub issue templates (#512) 2021-02-08 09:15:51 -08:00
Cat™andGitHub fc46f506e3 Update README.md/cmd/root.go with additional information (#523)
* Update README

* Add notice about large image, add link to repo for `.actrc`
2021-02-08 09:12:57 -08:00
Cat™andGitHub ec6b1624c0 Fix choco Dockerfile (#515) 2021-02-03 11:12:15 -08:00
Cat™andGitHub 8339f4b404 Interpolate with: inputs (#511) 2021-01-30 17:43:11 -08:00
e37b42a333 Print error with workflow/job information when runs-on key is not defined (#494)
Co-authored-by: Casey Lee <[email protected]>
2021-01-21 06:02:48 -08:00
Cat™andGitHub b424a785e3 Load .secrets file as default (#488)
* Load .secrets file as default

* Update README
2021-01-19 06:31:46 -08:00
6130460c40 Add survey during first run for a default image (#483)
* Add survey during first run for a default image

* few minor formatting updates

* Use image from DockerHub

Co-authored-by: Casey Lee <[email protected]>
2021-01-19 06:30:17 -08:00
Cat™andGitHub 9bbf35e88e Add autodetect event flag (#486)
* Add autodetect event flag

* Add new flag to README.md

* Make help more clear
2021-01-18 11:42:55 -08:00
Cat™andGitHub 41692c314d Add --env flag to pass environment vars without file (#474) 2021-01-14 21:26:01 -08:00
Cat™andGitHub 460ed2db04 Update parts of repo (#476)
* Update flags in README

* Add secrets and `.env` files examples

* Fix typo: environment

* Fix typo: returned

* Add --version back, since I've built act without ldflags
2021-01-14 21:21:44 -08:00
Cat™andGitHub 97dc3cf147 Make stale bot action less aggressive (#478)
Make stale bot action less aggressive
Days before marking issues/PRs as stale: 30
Days before closing stale issues/PRs: 14
2021-01-14 21:19:25 -08:00
Cat™andGitHub 2811101dea Make all secrets case insensitive by formatting them to uppercase (#470)
* Uppercase secrets, print error when secret with same name already exists

* Test lower-to-upper case formatting for secrets
2021-01-12 09:54:53 -08:00
Cat™andGitHub 760daebf5d Fix slashes when running on Windows (#461) 2021-01-11 22:41:35 -08:00
Cat™andGitHub 80a245652e Add option to disable hiding of secrets (#460) 2021-01-11 22:28:45 -08:00
Cat™andGitHub a9b3d6426b Use static initial PATH (#462) 2021-01-11 22:27:16 -08:00
fecc571bce Add Ubuntu 20.04 to supported platforms (#463)
Co-authored-by: Casey Lee <[email protected]>
2021-01-11 22:22:53 -08:00