You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-11
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,18 @@ or in a shell by running
82
82
nix-shell -p act
83
83
```
84
84
85
+
If you have Go 1.16+, you can install latest released version of `act` directly from source by running:
86
+
87
+
```sh
88
+
go install github.com/nektos/act@latest
89
+
```
90
+
91
+
or if you want to install latest unreleased version:
92
+
93
+
```sh
94
+
go install github.com/nektos/act@master
95
+
```
96
+
85
97
# Commands
86
98
87
99
```sh
@@ -156,9 +168,8 @@ It will save that information to `~/.actrc`, please refer to [Configuration](#co
156
168
A `MODULE_NOT_FOUND` during `docker cp` command [#228](https://github.com/nektos/act/issues/228) can happen if you are relying on local changes that have not been pushed. This can get triggered if the action is using a path, like:
157
169
158
170
```yaml
159
-
160
-
- name: test action locally
161
-
uses: ./
171
+
- name: test action locally
172
+
uses: ./
162
173
```
163
174
164
175
In this case, you _must_ use `actions/checkout@v2` with a path that _has the same name as your repository_. If your repository is called _my-action_, then your checkout step would look like:
@@ -181,12 +192,12 @@ Running `act` on Windows host is currently broken - see [#587](https://github.co
181
192
182
193
GitHub Actions offers managed [virtual environments](https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) for running workflows. In order for `act` to run your workflows locally, it must run a container for the runner defined in your workflow file. Here are the images that `act` uses for each runner type and size:
183
194
184
-
| GitHub Runner | Micro Docker Image | Medium Docker Image | Large Docker Image |
@@ -218,7 +229,7 @@ If you need an environment that works just like the corresponding GitHub runner
218
229
:warning: :elephant: `*** WARNING - this image is >18GB 😱***`
219
230
220
231
- [`catthehacker/ubuntu:full-20.04`](https://hub.docker.com/r/catthehacker/ubuntu/tags) - built from Dockerfile based on the Packer template from [actions/virtual-environments](https://github.com/actions/runner).
221
-
This image size is about `61GB` unpacked (`23GB` compressed) but contains more recent software versions (as of date of build).
232
+
This image size is about `61GB` unpacked (`23GB` compressed) but contains more recent software versions (as of date of build).
222
233
223
234
## Use an alternative runner image
224
235
@@ -324,7 +335,7 @@ Need help? Ask on [Gitter](https://gitter.im/nektos/act)!
324
335
325
336
Want to contribute to act? Awesome! Check out the [contributing guidelines](CONTRIBUTING.md) to get involved.
326
337
327
-
## Building from source
338
+
## Manually building from source
328
339
329
340
- Install Go tools 1.16+ - (<https://golang.org/doc/install>)
0 commit comments