Skip to content

Commit

Permalink
new testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Dec 11, 2024
1 parent 327dbf5 commit 85e4c27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 60 deletions.
65 changes: 7 additions & 58 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,14 @@
name: CI

name: Тестирование
on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * 1'

workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
oscript_version: ['stable', '1.8.4']

steps:
- uses: actions/checkout@v2

- name: Setup Onescript Action
uses: otymko/[email protected]
with:
version: ${{ matrix.oscript_version }}

- name: Install dependencies
run: |
opm install opm
opm install 1testrunner;
opm install 1bdd;
opm install coverage;
opm install -l --dev
- name: Compute branch name
uses: nelonoel/[email protected]

- name: Run tests
run: |
oscript ./tasks/coverage.os
- name: SonarCloud Scan on push
if: github.repository == 'oscript-library/opm' && github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.oscript_version == 'stable'
uses: nixel2007/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.branch.name=${{ env.BRANCH_NAME }}
- name: SonarCloud Scan on PR
if: github.repository == 'oscript-library/opm' && github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.oscript_version == 'stable'
uses: nixel2007/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-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 }}
oscript_version: ['stable', 'default']
uses: autumn-library/workflows/.github/workflows/test.yml@main
with:
oscript_version: ${{ matrix.oscript_version }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
release:
uses: autumn-library/workflows/.github/workflows/release.yml@main
with:
oscript_version: '1.8.3'
package_mask: "opm-*.ospx"
secrets:
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
2 changes: 1 addition & 1 deletion packagedef
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

Описание.Имя("opm")
.Версия(ВерсияПродукта)
.ВерсияСреды("1.8.3")
.ВерсияСреды("1.8.4")
.ЗависитОт("strings", "0.5.0")
.ЗависитОт("fs", "1.2.0")
.ЗависитОт("asserts", "1.3.0")
Expand Down

0 comments on commit 85e4c27

Please sign in to comment.