Skip to content

Commit dfaa2e9

Browse files
greenc-FNALCopilotCopilot
authored
Support the installation and use of act to test and run GitHub workflows (#222)
* Support the use of `act` to test and run GitHub workflows * Clarify text formatting instruction per review feedback Updated the text formatting standard to explicitly state that the final line must be non-empty and terminated with a single linefeed, leaving no trailing blank lines. This clarification addresses potential ambiguity in the previous wording. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: greenc-FNAL <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 14c7635 commit dfaa2e9

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.actrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# act configuration for local workflow testing on the host
2+
# See: https://nektosact.com/usage/index.html
3+
#
4+
# NOTE: act cannot run inside the devcontainer due to nested container limitations.
5+
# Use this configuration when running act on the host machine.
6+
7+
# Default image for jobs without explicit container
8+
# Medium = Ubuntu with common build tools
9+
-P=ubuntu-latest=catthehacker/ubuntu:act-latest
10+
11+
# Container architecture
12+
--container-architecture=linux/amd64
13+
14+
# Store artifacts in local directory
15+
--artifact-server-path=.act-artifacts
16+
17+
# Optional: Use existing GitHub token if available
18+
# --secret-file=.secrets

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ If the workspace root contains a `srcs/` directory, it may contain symbolic link
7676

7777
**CRITICAL: Apply to ALL files you create or edit (bash scripts, Python, C++, YAML, Markdown, etc.)**
7878

79-
- All text files must end with exactly one newline character and no trailing blank lines
79+
- All text files must have their final line be non-empty and terminated with a single newline character, leaving no trailing blank lines
8080
- **Never add trailing whitespace on any line** (spaces or tabs at end of lines)
8181
- This includes blank lines - they should contain only the newline character, no spaces or tabs
8282
- Exception: Markdown two-space line breaks (avoid; use proper paragraph breaks instead)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ __pycache__/
4343

4444
# macOS
4545
.DS_Store
46+
# act (local workflow testing)
47+
.act-artifacts/
48+
.secrets

0 commit comments

Comments
 (0)