Torbjørn Vatn
1ae5c19aa4
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
Torbjørn Vatn
d752f1e2b9
envs in if: - take 2 ( #412 )
...
* 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
2020-11-12 08:15:09 -08:00
Steffen Seckler
88978fc12b
Adds ability to use container images from matrices. ( #413 )
...
Uses rc.ExprEval.Interpolate on container image.
2020-11-10 14:55:27 -08:00
Taliesin Sisson
222377d1d5
When running on Windows the correct path separator must be used ( #386 )
...
* When running on Windows the correct path separator must be used. filePath.join is OS aware, so when we want to use forward slash use path.join instead.
on windows docker cp should end with \. when copying a directory
when running npm modules we should pass in path with all forward slashes
This fixes #331
* When calculating relative folders on Windows for destination path on Linux, we need to change \ for /
* Reduce complexity by extracting methods
* V1 does not point to a file that does not exist
* Looks like something else is the cause of this test breaking. Last successful build is #371 , builds after that are failing
2020-10-08 22:30:50 -07:00
Javier Romero
76c46ef07a
Fix path for local node12 actions ( #371 )
...
Fixes #185
Signed-off-by: Javier Romero <root@jromero.codes>
2020-09-29 13:39:45 -07:00
Leonardo Dino
728caae607
Add CI=true environment variable ( #372 )
...
fixes #333
see https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
2020-09-28 08:22:42 -07:00
Owen
bd0c8047f1
feat: support custom GITHUB_RUN_ID, GITHUB_RUN_NUMBER ( #369 )
...
* feat: add fromJSON support
* feat: support custom runId and runNumber
* chore: manual update
* chore: lint
2020-09-22 14:13:29 -07:00
Tom Lazar
2e09dfac74
Set the default branch inside the event data ( #354 )
...
* set ${{github.event.repository.default_branch}}
* change `ok == false` to `!ok`
Co-authored-by: Casey Lee <cplee@nektos.com>
2020-09-02 07:56:44 -07:00
watiko
7f17e0a9f4
fix file permission for non root user docker image ( #334 )
2020-08-08 13:31:26 -07:00
whywaita
4d237924ac
add flag of privileged mode
2020-08-02 05:21:49 +09:00
Josh Soref
0e18c4dd43
Properly pass format argument to avoid MISSING ( #290 )
...
#273
2020-06-24 07:05:05 -07:00
Stan Wohlwend
f84aa60a04
Fix container volumes being reused sometimes ( #283 )
2020-06-18 08:21:55 -07:00
Michael Heap
b9851b2453
Add support for changing the GITHUB_ACTOR ( #229 )
...
This adds the `-a` flag when running `act` to change the username of the GITHUB_ACTOR environment variable
Co-authored-by: Casey Lee <cplee@nektos.com>
2020-05-12 00:14:56 -07:00
Torbjørn Vatn
09c4c76744
Make envs available in if conditionals ( #225 )
...
* Ignore .idea
* Add Env to the RunContext vm so we can Evaluate and Interpolate `env.xx`
* Make EvalBool support expressions more in line with the github runner
* Turns out Boolean(value) is what github is doing after all
* Add test for github context as well
2020-05-04 12:18:13 -07:00
Casey Lee
7ff4970948
fix : #170 add RUNNER_TEMP
2020-04-23 08:18:36 -07:00
Casey Lee
862d198040
fix : #170 #171 - add RUNNER_OS and RUNNER_TEMP
2020-04-22 23:57:36 -07:00
jony montana
3bb919f266
feat: load every environment from --env-file to workflow ( #184 )
...
* feat: load every environment from --env-file to workflow
* fix: pass dotenv's environments through by context
* updates to support --secret-file
Co-authored-by: Casey Lee <cplee@nektos.com>
2020-04-17 10:04:40 -07:00
Alberto Fernández
479dc5b094
Remove length constraint ( #190 )
2020-04-16 16:05:00 -07:00
Aidan Steele
25134089ee
Add support for runs-on array form ( closes #146 ) ( #155 )
...
* Add support for runs-on array form (closes #146 )
* Fixed style issues
Co-authored-by: Casey Lee <cplee@nektos.com>
2020-03-16 14:58:10 -07:00
Casey Lee
e60c46b79f
fix #122 - support actions/checkout for repos other the one for this workflow ( #143 )
2020-03-09 17:45:42 -07:00
Casey Lee
caba9f7645
fix #141 - use host network to match GitHub Actions runners ( #142 )
2020-03-09 17:43:24 -07:00
Casey Lee
cc19e1e341
fix #134 - include base_ref and head_ref in github context from the event json
2020-03-06 14:17:57 -08:00
Casey Lee
8f6d32db71
fix #134 - support 'env' context in steps
2020-03-06 13:39:01 -08:00
Casey Lee
c64bbd5c93
fix #127 - force eval as a boolean ( #131 )
2020-03-06 11:30:39 -08:00
Casey Lee
e7515df4b1
fix #108 - support matrix expressions in job name ( #109 )
2020-02-26 23:29:43 -08:00
Casey Lee
b05d2fc784
fix #100 - change RUNNER_TOOL_CACHE to /opt/hostedtoolcache ( #103 )
2020-02-25 08:52:04 -08:00
Casey Lee
d2ef0e27c7
fix 99: support string and map variants of container
2020-02-24 22:35:08 -08:00
Casey Lee
199c125522
run with copy of workingdir
2020-02-24 17:48:21 -08:00
Casey Lee
6df3e39a46
move action cache to volume
2020-02-24 16:38:49 -08:00
Casey Lee
ff9f2a8c94
integration test
2020-02-24 12:48:12 -08:00
Casey Lee
72682352a6
unit tests pass
2020-02-24 10:56:49 -08:00
Casey Lee
0f6340f811
cache dir for remote actions
2020-02-23 22:34:48 -08:00
Casey Lee
e5680477f9
local actions done
2020-02-23 16:36:44 -08:00
Casey Lee
12ac7300b9
shared container for job
2020-02-23 15:01:25 -08:00
Casey Lee
a3af4d491b
updates for tests
2020-02-21 22:19:59 -08:00
Casey Lee
63d10ccd96
unchecked error
2020-02-21 08:42:00 -08:00
Casey Lee
10296e05c7
reuse containers to fix #86
2020-02-20 22:43:20 -05:00
Casey Lee
47376f8009
add support to override platform
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:15 -05:00
Casey Lee
33f5b5416c
matrix is done
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:03 -05:00
Casey Lee
12ac03a755
skip unsupported platforms
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:06:01 -05:00
Casey Lee
b8589c4e9b
initial support for expressons
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:59 -05:00
Casey Lee
7183c74cd0
fix tests
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:57 -05:00
Casey Lee
673c7e4262
bug with local action
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:48 -05:00
Casey Lee
eb7e10e86b
test updates
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:44 -05:00
Casey Lee
c236395c01
add commands support
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:42 -05:00
Casey Lee
c44aa2a118
cleanup logging
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:40 -05:00
Casey Lee
2818130313
ci tests
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:36 -05:00
Casey Lee
ff5f860cee
unit tests
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:31 -05:00
Casey Lee
7f5ced76f6
local actions
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:29 -05:00
Casey Lee
770966a7d0
support custom shell
...
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:27 -05:00