-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage #15
Merged
Coverage #15
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d052434
Coverage
nixel2007 e28f875
Общий воркфлоу для codecov
nixel2007 72e120a
Update sonar.yml
nixel2007 0105a22
Путь к файлу с замерами
nixel2007 882dee9
Явный путь, куда скачивать coverage
nixel2007 4999b14
Out для coverage в sonar
nixel2007 703e2a1
Другой параметр для файла в codecov
nixel2007 04fa668
Сохранение всех файлов coverage
nixel2007 643f0ba
[Cc]
nixel2007 ca1025a
file -> dir
nixel2007 5a50ec6
dir -> directory
nixel2007 348b67d
warchant v8
nixel2007 28d78e3
coverage -> codecov
nixel2007 f7df8b3
Удалено лишнее условие
nixel2007 c53bdf6
Merge branch 'main' into coverage
nixel2007 ddacbbd
Update .github/workflows/sonar.yml
nixel2007 b14924b
Update sonar.yml
nixel2007 b04314f
Update sonar.yml
nixel2007 ea53904
Update sonar.yml
nixel2007 cb4309c
Update sonar.yml
nixel2007 61ce553
Update sonar.yml
nixel2007 3e9c7e5
Update sonar.yml
nixel2007 75e1929
Update README.md
nixel2007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,29 +17,28 @@ on: | |
test_script_path: | ||
required: false | ||
type: string | ||
default: ./tasks/coverage.os | ||
default: ./tasks/coverage.os | ||
additional_oscript_packages: | ||
description: Package list to install, space separated. | ||
type: string | ||
required: false | ||
default: "" | ||
coveralls: | ||
required: false | ||
type: boolean | ||
default: false | ||
secrets: | ||
SONAR_TOKEN: | ||
required: false | ||
|
||
jobs: | ||
sonar: | ||
test: | ||
if: (github.repository == ${{ inputs.github_repository }} ) && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.event.repository.full_name) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Актуализация | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Вычисление имени ветки | ||
uses: nelonoel/[email protected] | ||
|
||
- name: Вычисление версии OneScript | ||
shell: bash | ||
|
@@ -72,6 +71,31 @@ jobs: | |
- name: Запуск тестов | ||
run: oscript ${{ inputs.test_script_path }} | ||
|
||
- name: Сохранение артефактов покрытия | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
path: out/*overage*.xml | ||
if-no-files-found: ignore | ||
|
||
sonar: | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
steps: | ||
- name: Актуализация | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Вычисление имени ветки | ||
uses: nelonoel/[email protected] | ||
|
||
- name: Скачивание артефактов | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage | ||
path: out | ||
|
||
- name: Извлечение версии пакета | ||
shell: bash | ||
run: echo "version=`cat packagedef | grep ".Версия(" | sed 's|[^"]*"||' | sed -r 's/".+//'`" >> $GITHUB_OUTPUT | ||
nixel2007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -102,3 +126,18 @@ jobs: | |
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} | ||
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} | ||
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} | ||
|
||
coveralls: | ||
runs-on: ubuntu-latest | ||
if: inputs.coveralls == true | ||
needs: [test] | ||
steps: | ||
- name: Актуализация | ||
uses: actions/checkout@v4 | ||
- name: Скачивание артефактов | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage | ||
path: out | ||
- name: Отправка отчёта о покрытии в Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
nixel2007 marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Задача
sonar
была переименована, но здесь она все еще упоминается под старым именем. Это может вызвать путаницу. Убедитесь, что это изменение было сделано намеренно и что все зависимости между задачами корректно обновлены.Committable suggestion