act
act copied to clipboard
feat: Test writing remote Actions locally
How to test
Usage: ./act --local-repository "https://github.com/test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v
Now also possible ./act --local-repository "test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v
on: push
jobs:
_:
runs-on: self-hosted
steps:
- uses: test/test@v0
action.yml in cwd
runs:
using: composite
steps:
- run: echo Test
Why?
Local actions cannot have pre steps and use a different syntax in the uses key
🦙 MegaLinter status: ✅ SUCCESS
| Descriptor | Linter | Files | Fixed | Errors | Elapsed time |
|---|---|---|---|---|---|
| ✅ EDITORCONFIG | editorconfig-checker | 4 | 0 | 0.02s | |
| ✅ REPOSITORY | gitleaks | yes | no | 2.34s | |
| ✅ REPOSITORY | git_diff | yes | no | 0.18s | |
| ✅ REPOSITORY | grype | yes | no | 7.87s | |
| ✅ REPOSITORY | secretlint | yes | no | 1.16s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | 0.61s | |
| ✅ REPOSITORY | trufflehog | yes | no | 6.98s |
See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
Actually only two commits here are implementation for this pr.
The rest is part of #1954, that's why I initially didn't create a pr for this.
Codecov Report
Attention: Patch coverage is 68.85246% with 19 lines in your changes are missing coverage. Please review.
Project coverage is 61.99%. Comparing base (
5a80a04) to head (5c1546f). Report is 16 commits behind head on master.
| Files | Patch % | Lines |
|---|---|---|
| pkg/runner/local_repository_cache.go | 68.85% | 14 Missing and 5 partials :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #2155 +/- ##
==========================================
+ Coverage 61.56% 61.99% +0.43%
==========================================
Files 53 56 +3
Lines 9002 9139 +137
==========================================
+ Hits 5542 5666 +124
- Misses 3020 3026 +6
- Partials 440 447 +7
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.