Skip to content

Commit

Permalink
... fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jul 8, 2024
1 parent 163a6ca commit 5d88ff5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/test-set-1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@

name: 'Test: Package metanorma'
description: 'Test: Package metanorma using locally deployed tebako gem'
inputs:
upload:
description: 'Upload arfifacts for tests on other OS version'
required: true
type: boolean
default: false

runs:
using: "composite"
steps:
Expand All @@ -42,12 +49,12 @@ runs:
RUBY_VER=${{ matrix.package_ruby_ver }} tests/scripts/functional-tests.sh
- name: Strip tebako test packages
if: ${{ !contains(matrix.os, 'macos') }}
if: ${{ !contains(matrix.os, 'macos') }} && ${{ inputs.upload }}
shell: bash
run: strip *-package

- name: Upload tebako test packages
if: ${{ matrix.package_ruby_ver == env.RUBY_VER && env.CC == 'clang' && matrix.os != 'macos-14' }}
if: ${{ inputs.upload }}
uses: actions/upload-artifact@v4
with:
name: test-packages
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ jobs:

- name: Run test set 1
uses: ./.github/actions/test-set-1
with:
upload: matrix.package_ruby_ver == '3.1.6' && matrix.env.CC == 'gcc'

tests-2:
needs: setup
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:

- name: Run test set 1
uses: ./.github/actions/test-set-1
with:
upload: matrix.package_ruby_ver == '3.1.6' && matrix.ruby_ver == '3.1.6' && matrix.os == 'macos-12'

tests-2:
needs: setup
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ jobs:

- name: Run test set 1
uses: ./.github/actions/test-set-1
with:
upload: false

tests-2:
needs: setup
Expand Down

0 comments on commit 5d88ff5

Please sign in to comment.