Skip to content

feat: fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart#65

Merged
nomeguy merged 2 commits into
masterfrom
copilot/fix-ci-error
Nov 18, 2025
Merged

feat: fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart#65
nomeguy merged 2 commits into
masterfrom
copilot/fix-ci-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 18, 2025

The publish job fails with "Unable to resolve action cedx/setup-dart, repository not found" because the third-party action is deprecated/removed.

Changes

  • Replace cedx/setup-dart@v2 with official dart-lang/setup-dart@v1 in publish job
  • Add sdk: stable parameter to match analyze/test jobs
# Before
- uses: cedx/setup-dart@v2

# After  
- uses: dart-lang/setup-dart@v1
  with:
    sdk: stable

This aligns all three jobs (analyze, test, publish) to use the same maintained Dart setup action.

Original prompt

This section details on the original issue you should resolve

<issue_title>[bug] fix CI error</issue_title>
<issue_description>See: https://github.com/casbin/dart-casbin/actions/runs/19468089921/job/55707928820

[publish](https://github.com/casbin/dart-casbin/actions/runs/19468089921/job/55707928820#logs)
failed 37 minutes ago in 3s
Search logs
1s
Current runner version: '2.329.0'
Runner Image Provisioner
Operating System
Runner Image
GITHUB_TOKEN Permissions
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Error: Unable to resolve action cedx/setup-dart, repository not found
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nomeguy nomeguy marked this pull request as ready for review November 18, 2025 14:15
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI error due to missing action Fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart Nov 18, 2025
Copilot AI requested a review from nomeguy November 18, 2025 14:22
@nomeguy nomeguy changed the title Fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart feat: fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart Nov 18, 2025
@nomeguy nomeguy merged commit f1410b3 into master Nov 18, 2025
7 of 8 checks passed
hsluoyz added a commit that referenced this pull request Nov 18, 2025
github-actions Bot pushed a commit that referenced this pull request Nov 18, 2025
# [0.2.0](v0.1.0...v0.2.0) (2025-11-18)

### Bug Fixes

* fix broken links ([#56](#56)) ([9c72f3f](9c72f3f))

### Features

* fix CI failure: replace deprecated cedx/setup-dart with dart-lang/setup-dart ([#65](#65)) ([c1fb01b](c1fb01b))
* fix CI workflow stuck in queue due to deprecated ubuntu-20.04 runners ([7a2096a](7a2096a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] fix CI error

3 participants