1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-26 18:20:59 +00:00

chore: import the ACT test workflow

- remove go vet and build as they are now redundant
- replace ./pkg with ./act
- rename the workflow from test to act to distinguish it from the
  runner workflow

cleanup and factorization with the runner workflow is left for later
This commit is contained in:
Earl Warren 2025-07-28 18:49:35 +02:00
parent ebc7758c1f
commit bcddcef2b9
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 80 additions and 2 deletions

View file

@ -262,7 +262,7 @@ func TestStepActionLocalPost(t *testing.T) {
return strings.HasSuffix(array[1], suffix)
})
}
cm.On("Exec", suffixMatcher("pkg/runner/local/action/post.js"), sal.env, "", "").Return(func(ctx context.Context) error { return tt.err })
cm.On("Exec", suffixMatcher("act/runner/local/action/post.js"), sal.env, "", "").Return(func(ctx context.Context) error { return tt.err })
cm.On("Copy", "/var/run/act", mock.AnythingOfType("[]*container.FileEntry")).Return(func(ctx context.Context) error {
return nil