Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed Aug 27, 2023
1 parent d423477 commit d5d8cee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build and test
on:
push:
branches: [ feature/**, develop ]
pull_request:
branches: [ develop ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/run-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ on:
description: 'Platform version'
type: string
required: true

locale:
type: string
required: false
default: ru_RU

artifact_name:
type: string
required: true

fail_on_failure:
type: boolean
required: false
default: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.v8_version }}-${{ inputs.locale }}-Linux
cancel-in-progress: true

jobs:
execute-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:

- name: download artifact
Expand Down Expand Up @@ -110,8 +115,7 @@ jobs:
timeout-minutes: 5

- name: run server
run: |
ibsrv --db-path=file-db --daemon
run: ibsrv --db-path=file-db --daemon

- name: create test-config
uses: DamianReeves/write-file-action@master
Expand All @@ -126,12 +130,12 @@ jobs:
}
- name: run tests
run: |
export DISPLAY=:99
export LANG=${{ inputs.locale }}.UTF-8
1cv8c /WS "http://localhost:8314" /C"RunUnitTests=${{github.workspace}}/unit.json" /DisableStartupDialogs /DisableStartupMessages /DisableUnrecoverableErrorMessage /Out output.log
run: 1cv8c /WS "http://localhost:8314" /C"RunUnitTests=${{github.workspace}}/unit.json" /DisableStartupDialogs /DisableStartupMessages /DisableUnrecoverableErrorMessage /Out output.log
timeout-minutes: 5

env:
DISPLAY: :99
LANG: "${{ inputs.locale }}.UTF-8"

- name: view output
if: always()
run: cat output.log
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
description: 'Platform version'
type: string
required: true

locale:
type: string
required: false
default: ru_RU

artifact_name:
type: string
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.v8_version }}-${{ inputs.locale }}-MacOS
cancel-in-progress: true

jobs:
execute-tests:
runs-on: macos-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
description: 'Platform version'
type: string
required: true

locale:
type: string
required: false
default: ru_RU

artifact_name:
type: string
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.v8_version }}-${{ inputs.locale }}-Windows
cancel-in-progress: true

jobs:
execute-tests:
runs-on: windows-latest
Expand Down

0 comments on commit d5d8cee

Please sign in to comment.