mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #415] [MERGED] Fixes include when using matrix and strategy build. #1442
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1442
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/415
Author: @SteffenSeckler
Created: 11/11/2020
Status: ✅ Merged
Merged: 12/8/2020
Merged by: @cplee
Base:
master← Head:feature/fixes_include📝 Commits (7)
2a33489fixes include directive of strategy build.97b9970Adds test for include and exclude in matrix builds.7159584ubuntu-16.04 instead of 20.049f26d04Adds more platforms for runner_test082da61correct printing for unsupported platform467f958Merge remote-tracking branch 'source/master' into feature/fixes_include61626e3fix merge📊 Changes
4 files changed (+42 additions, -10 deletions)
View changed files
📝
pkg/model/workflow.go(+6 -9)📝
pkg/runner/run_context.go(+4 -1)📝
pkg/runner/runner_test.go(+1 -0)➕
pkg/runner/testdata/matrix-include-exclude/push.yml(+31 -0)📄 Description
The
includeof the matrix strategy was incorrectly handled.This simply appends the provided includes to the matrix product, s.t. this works (taken from the official doc)
Also replaces the comparison of the
commonKeysMatch()with areflect.DeepEqualto be able to compare maps.Potentially the entire loop could be replaced that way`
PS:
I do not know how testing works in this project, so I cannot easily add one. But I have seen, that neither
includenorexcludeappears to be tested.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.