Commit Graph

35 Commits

Author SHA1 Message Date
hackercat
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
Casey Lee
7f6a808262 update stale labels to stop closing issues that are NOT stale 2021-01-18 10:41:49 -08:00
Cat™
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
Torbjørn Vatn
15eaa15a0e GitHub env file support (#426)
* Upgrade to the official golangci-lint action and fix some issues it found

* Update deps

* Remove a shadow warning

* Initialize the splitPattern only once

* Initial attempt at supporting $GITHUB_ENV

Needs some polishing and tests

* Now it's actually working

* Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term

* Disable the issue-228 test again

* The linter is picky

* Discovered that the workflow/envs.txt had to exist in certain cases

* Fix small linter issue
2021-01-11 22:39:43 -08:00
Torbjørn Vatn
b3299ecd30 Act env (#417)
* Test more if env variants

* The correct negation syntax is !=

* Make the Interpolate function support negated booleans from envs

* Move assert := a.New(t) into t.Run

This uncovered that some of the test premisses was wrong and the
Eval Bool function also had flaws

* Remove a stray logrus import

* Add an ACT env set to true

This can be used to skip certain steps that you don't want to run locally
when testing. E.g. steps that sends messages to Slack channels on successful
builds etc.

* Add a description about env.ACT to the readme

* A new attempt at Interpolation and EvalBool

* One small merge fix

* Remove some fmt.Printfs

* Fix some merge conflicts
2020-11-18 07:14:34 -08:00
Torbjørn Vatn
8ba3306aa4 EvalBool and Interpolation fixes (#424)
* A new attempt at Interpolation and EvalBool

* One small merge fix

* Remove some fmt.Printfs
2020-11-17 09:31:05 -08:00
Casey Lee
d6b2e9df78 increase operations per run 2020-11-08 08:31:19 -08:00
Casey Lee
e6a391ddb1 remove stale label when comments added 2020-11-08 08:23:53 -08:00
lshamis
644bc2b635 Simpler list view (#382)
* Simpler list view

* lint

* readding graph viz with -g/--graph

Co-authored-by: Leonid Shamis <lshamis@bob.localdomain>
Co-authored-by: Casey Lee <cplee@nektos.com>
2020-10-12 10:26:22 -07:00
Yoan Blanc
3eef111e46 chore: upgrade docker v19.03.12 (#348)
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-08-29 22:55:22 -07:00
Casey Lee
0d5a228ab9 update actions/stale to remove stale when issues are updated 2020-08-28 11:56:20 -07:00
Casey Lee
b7fcf137ab Fix 132 - support for chocolatey install (#144)
* fix #132 - publish chocolatey package for act

* add missing files to pass validation

* remove extra choco step
2020-03-09 17:49:55 -07:00
Casey Lee
bd6f232b20 fix build for windows 2020-03-06 17:08:07 -08:00
chenrui
ca648a37c8 chore(deps): cleanup go.mod a little bit (#136)
* Upgrade docker to v19.03.7

* go mod vendor

* golangci-lint 1.23.8
2020-03-06 14:37:54 -08:00
chenrui
c588c07ce7 Bump golang to v1.14 (#135)
* Bump golang to v1.14

* go mod vendor

Co-authored-by: Casey Lee <cplee@nektos.com>
2020-03-06 14:21:24 -08:00
Casey Lee
a5570ffdd6 run on push and pull_request 2020-03-02 08:04:30 -08:00
Casey Lee
45839d68ec manage stale issues in GH actions 2020-02-28 09:35:29 -08:00
Casey Lee
eb28924ba5 actions 2020-02-24 15:05:41 -08:00
Casey Lee
d54b25d983 makefile cleanups 2020-02-24 15:04:33 -08:00
Casey Lee
3a65967b95 ci cleanup 2020-02-24 14:43:03 -08:00
Casey Lee
037e08a3a7 integration test 2020-02-24 12:48:12 -08:00
Casey Lee
6c632946be unit tests pass 2020-02-24 10:56:49 -08:00
Casey Lee
bc2b952b65 token for goreleaser
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:24 -05:00
Casey Lee
ad2789fa1b new token for brew
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:22 -05:00
Casey Lee
e4ee2ddab7 disable integration testing
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:13 -05:00
Casey Lee
64562d41ab test updates
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:44 -05:00
Casey Lee
f7252cbcf9 add commands support
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:42 -05:00
Casey Lee
033168228b cleanup logging
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:40 -05:00
Casey Lee
a21d4bbd90 ignore actions/checkout locally
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:38 -05:00
Casey Lee
835b36cb63 ci tests
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:36 -05:00
Casey Lee
0582306861 unit tests
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:31 -05:00
Casey Lee
be75ee20b1 local actions
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:29 -05:00
Casey Lee
4e046e1ec0 support custom shell
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:27 -05:00
Casey Lee
532af98aef successfully able to run simple workflows
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:25 -05:00
Casey Lee
8c49ba0cec initial load of yaml working 2020-02-04 16:38:41 -08:00