Skip to content

Commit

Permalink
update DEVELOPMENT readme and secrets example, as well as point act t…
Browse files Browse the repository at this point in the history
…est data at smaller PR diff
  • Loading branch information
monsagri committed Jan 15, 2025
1 parent e4e44b9 commit 0ef90d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .secrets.example.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Save as .secrets for testing with nektos/act

LD_ACCESS_TOKEN= # LaunchDarkly access token
LD_ACCESS_TOKEN_WRITER= # LaunchDarkly access token (both are used for local runs with act)
GITHUB_TOKEN= # GitHub PAT with repo access
3 changes: 2 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
## Testing locally

Use [nektos/act](https://github.com/nektos/act) to run actions locally.
NB: You'll want to use the `large` runner in order to have access to all commands needed for testing.

```
act
act -e testdata/act/pull-request.json
```

_Read more: [Example commands](https://github.com/nektos/act#example-commands)_
Expand Down
2 changes: 1 addition & 1 deletion testdata/act/pull-request.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pull_request": {
"number": 20,
"number": 23,
"head": {
"ref": "sample-head-ref"
},
Expand Down

0 comments on commit 0ef90d8

Please sign in to comment.