mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1470] Act is ignoring "using" #755
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#755
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?
Originally created by @yatsenkolesh on GitHub (Nov 26, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1470
Bug report info
Command used with act
Describe issue
Hi guys. When I'm running the tests I got the following issue with shivammathur/setup-php@v2: aleksey@hello pdffiller % act -j Run-main-unit-tests
[Main Unit tests/Run-main-unit-tests] 🚀 Start image=nektos/act-environments-ubuntu:18.04-full
[Main Unit tests/Run-main-unit-tests] 🐳 docker pull image=nektos/act-environments-ubuntu:18.04-full platform= username= forcePull=false
[Main Unit tests/Run-main-unit-tests] 🐳 docker create image=nektos/act-environments-ubuntu:18.04-full platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Main Unit tests/Run-main-unit-tests] 🐳 docker run image=nektos/act-environments-ubuntu:18.04-full platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Main Unit tests/Run-main-unit-tests] ☁ git clone 'https://github.com/shivammathur/setup-php' # ref=v2
[Main Unit tests/Run-main-unit-tests] ☁ git clone 'https://github.com/actions/cache' # ref=v1
[Main Unit tests/Run-main-unit-tests] ⭐ Run Main Setup PHP
[Main Unit tests/Run-main-unit-tests] 🐳 docker cp src=/Users/aleksey/.cache/act/shivammathur-setup-php@v2/ dst=/var/run/act/actions/shivammathur-setup-php@v2/
[Main Unit tests/Run-main-unit-tests] 🐳 docker exec cmd=[node /var/run/act/actions/shivammathur-setup-php@v2/dist/index.js] user= workdir=
| /run/act/actions/shivammathur-setup-php@v2/dist/index.js:632
I'm using the base image to run the test (nektos/act-environments-ubuntu:18.04-full). Looks like this issue caused by ignoring the rule "using" in GitHub action - https://github.com/shivammathur/setup-php/blob/master/action.yml#L32
So "??" is not supported in js in the act-environments-ubuntu:18.04-full image.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@20k-ultra commented on GitHub (Nov 30, 2022):
I don't see any error in the logs you provided. What is the problem ?
When I run your workflow (I remove the checkout step), the job succeeds.
@ChristopherHX commented on GitHub (Nov 30, 2022):
act uses
nodefromPATHto run bothusing: node12andusing: node16. In this casenodeis node in version12 with it's old pre node 16 syntax.However this is intentional and using such an outdated docker image is not recommend.
@github-actions[bot] commented on GitHub (Jan 7, 2023):
Issue is stale and will be closed in 14 days unless there is new activity