Skip to content

Commit

Permalink
docs: update info for testing workflows via act
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 20, 2023
1 parent 894cfce commit be175c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests/push_payload.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"base_ref ": "development"
"base_ref ": "development",
"ref": "refs/heads/development"
}
9 changes: 7 additions & 2 deletions .github/workflows/tests/test_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ set -e
# GITHUB_TOKEN=input
# Feed to act using -s flag: -s GITHUB_TOKEN=input_personal_access_token

# PR
act pull_request -W .github/workflows/pr_test.yml \
# PR Test Backend
act pull_request -W .github/workflows/pr_test_backend.yml \
-e .github/workflows/tests/pr_payload.json \
--var-file=.env --secret-file=.env

# PR Test Frontend
act pull_request -W .github/workflows/pr_test_frontend.yml \
-e .github/workflows/tests/pr_payload.json \
--var-file=.env --secret-file=.env

Expand Down

0 comments on commit be175c3

Please sign in to comment.