Skip to content

ci: corrige setup-dotnet (CI vermelho em todos os runs) - #6

Closed
thiagoluga wants to merge 1 commit into
masterfrom
ci/fix-setup-dotnet
Closed

ci: corrige setup-dotnet (CI vermelho em todos os runs)#6
thiagoluga wants to merge 1 commit into
masterfrom
ci/fix-setup-dotnet

Conversation

@thiagoluga

Copy link
Copy Markdown
Owner

Fix de CI

Todos os runs de CI (inclusive o do bootstrap puro) estão falhando no step Setup .NET.

Causa provável

actions/setup-dotnet@v4 resolve versões com wildcard (8.0.x / 9.0.x) consultando o repositório actions/dotnet-versions via API, que neste repo retorna "Resource not accessible by integration", quebrando o job antes de build/test.

Correção

  • Fixa versões exatas do SDK (8.0.100, 9.0.100) → instalação direta, sem lookup via API.
  • Mantém os steps Restore / Build / Test / Format.

Validação real é este próprio run de CI ficar verde.

actions/setup-dotnet@v4 resolves wildcard versions (8.0.x/9.0.x) by querying
the actions/dotnet-versions repo through the API, which fails on this repo with
'Resource not accessible by integration', breaking every CI run. Pin exact SDK
versions (8.0.100, 9.0.100) so they install directly without the API lookup.
Also restore the format-verify step that had been duplicated as a second test step.
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.

1 participant