Build package once and test across all platforms#56
Draft
Conversation
Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com>
Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix testing of a single build across platforms
Build package once and test across all platforms
Jan 27, 2026
Stivo182
reviewed
Jan 27, 2026
| id: extract_oscript_version | ||
| run: | | ||
| set -ex | ||
| if [ "${{ inputs.oscript_version }}" = "default" ] |
Contributor
There was a problem hiding this comment.
Всегда извлекать версию OneScript из манифеста
Stivo182
reviewed
Jan 27, 2026
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: package | ||
| path: ./*.ospx |
Contributor
There was a problem hiding this comment.
Возможно можно задать универсальный паттерн например
.
!.git/**
!oscript_modules/**
Contributor
There was a problem hiding this comment.
Хотя указанный в inputs out-каталог действительно будет предпочтительней. Который будет передаваться в path
Stivo182
reviewed
Jan 27, 2026
| required: false | ||
|
|
||
| jobs: | ||
| build-package: |
Contributor
There was a problem hiding this comment.
Для сонара я думаю это излишне)
Stivo182
reviewed
Jan 27, 2026
| opm install opm | ||
| fi | ||
| opm install -l | ||
|
|
Contributor
There was a problem hiding this comment.
Пропущена "Установка дополнительных пакетов"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
build_package: true, each matrix combination was building its own package variant. This meant different artifacts were tested on different platforms, and none matched what would eventually be released.Changes
test.yml and sonar.yml workflows:
build-package(conditional, runs once on ubuntu-latest) andtest(runs on full matrix)build-packageuploads artifact,testdownloads it whenbuild_package: truetestjob usesneeds: build-packagewith conditionalif: !cancelled() && (needs.build-package.result == 'success' || needs.build-package.result == 'skipped')to run regardless of build-package executionREADME.md:
build_package: truenow builds once and tests the same artifact everywhereBehavior
When
build_package: false(default), behavior is unchanged—no build step occurs.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.