From 85e4c27a23027babe9597b7bc8c1aaf2d9b0f22e Mon Sep 17 00:00:00 2001 From: Nikita Fedkin Date: Wed, 11 Dec 2024 09:20:55 +0100 Subject: [PATCH] new testing workflow --- .github/workflows/main.yml | 65 ++++------------------------------- .github/workflows/release.yml | 1 - packagedef | 2 +- 3 files changed, 8 insertions(+), 60 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be8e3f7..32f0450 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/setup-onescript@v1.1 - 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/branch-name@v1.0.1 - - - 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/sonarcloud-github-action@v1.4 - 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/sonarcloud-github-action@v1.4 - 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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2ad23e..bc82060 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/packagedef b/packagedef index 8de65b3..5f2cd7a 100644 --- a/packagedef +++ b/packagedef @@ -18,7 +18,7 @@ Описание.Имя("opm") .Версия(ВерсияПродукта) - .ВерсияСреды("1.8.3") + .ВерсияСреды("1.8.4") .ЗависитОт("strings", "0.5.0") .ЗависитОт("fs", "1.2.0") .ЗависитОт("asserts", "1.3.0")