Skip to content

feat: Add a GitHub Actions workflow for use in CI workflows - #339

Open
Lamparter wants to merge 3 commits into
unoplatform:mainfrom
Lamparter:actions-workflow
Open

Lamparter wants to merge 3 commits into
unoplatform:mainfrom
Lamparter:actions-workflow

Conversation

@Lamparter

Copy link
Copy Markdown

This PR implements an alternative way for consuming Uno.Check - from GitHub Actions.
This will appear in the GitHub Marketplace once a release on the repo is published or a tag is created.

This also removes the need for the massive unnecessary workflow files shipped with the Uno templates wizard downstream.


name: Example Workflow
on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Install Uno Platform workload
        uses: unoplatform/uno.check@[version]
        with:
          target-platform: 'all'
          dotnet-version: '8.0.x'
          sdk-version: '19041'

@CLAassistant

CLAassistant commented Feb 8, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! A few adjustments are needed but this is a good addition!

Comment thread action.yml Resolved
Comment thread action.yml
Comment on lines +40 to +51
- name: Install ${{ inputs.target-platform }} Workloads
shell: pwsh
run: |
dotnet tool install -g uno.check
("${{ inputs.target-platform }} ".Split(' ') | ForEach-Object {
$target = $_.Replace("_win", "").Replace("_macos", "")
if (![string]::IsNullOrEmpty($target)) {
echo "target: $target"
uno-check -v --ci --non-interactive --fix --target $target --skip vswin --skip vsmac --skip xcode --skip vswinworkloads --skip androidemulator --skip dotnetnewunotemplates
echo "uno-check finished for target: $target "
}
})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably could avoid running uno-check in a loop by adding multiple --target options instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean?
This is the standard behaviour of the mini-workflow step included in the Uno platform template.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! That's right, then the other one probably should be changed as well, but that will do for now then.

@jeromelaban jeromelaban left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few additional comments.

Comment thread action.yml
Comment on lines +40 to +51
- name: Install ${{ inputs.target-platform }} Workloads
shell: pwsh
run: |
dotnet tool install -g uno.check
("${{ inputs.target-platform }} ".Split(' ') | ForEach-Object {
$target = $_.Replace("_win", "").Replace("_macos", "")
if (![string]::IsNullOrEmpty($target)) {
echo "target: $target"
uno-check -v --ci --non-interactive --fix --target $target --skip vswin --skip vsmac --skip xcode --skip vswinworkloads --skip androidemulator --skip dotnetnewunotemplates
echo "uno-check finished for target: $target "
}
})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! That's right, then the other one probably should be changed as well, but that will do for now then.

Comment thread action.yml Resolved
Co-authored-by: Jérôme Laban <[email protected]>
@DevTKSS

DevTKSS commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Hello @Lamparter @jeromelaban ,
I noticed this PR hasn’t moved since the last exchange, and I was wondering if there’s an update on how the Uno team plans to proceed.
If this is still considered relevant, I’d be happy to help move it forward.

This branch has not been deployed

No deployments
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.

4 participants