Skip to content

Commit

Permalink
Test refactoring common scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Jan 23, 2025
1 parent 93c18d6 commit 16959d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'release/**'
- 'hotfix/**'
- 'develop'
- 'feature/fix-common-scripts'
paths:
- '.github/workflows/build_packages.yml'
workflow_dispatch:
Expand All @@ -25,11 +26,11 @@ on:
deb_build:
description: 'Trigger DEB build'
required: false
default: 'false'
default: 'true'
rpm_build:
description: 'Trigger RPM build'
required: false
default: 'false'
default: 'true'

concurrency:
group: ${{ github.ref }}
Expand All @@ -40,9 +41,9 @@ env:
PRODUCT_LOW: "docspace"
BUILD_NUMBER: ${{ github.run_number }}
PACKAGE_DIRECTORY: "/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}"
BRANCH_BUILDTOOLS: ${{ github.event.inputs.branch-buildtools != '' && github.event.inputs.branch-buildtools || github.ref_name || 'develop' }}
BRANCH_CLIENT: ${{ github.event.inputs.branch-client != '' && github.event.inputs.branch-client || github.ref_name || 'develop' }}
BRANCH_SERVER: ${{ github.event.inputs.branch-server != '' && github.event.inputs.branch-server || github.ref_name || 'develop' }}
BRANCH_BUILDTOOLS: 'feature/fix-common-scripts'
BRANCH_CLIENT: 'develop'
BRANCH_SERVER: 'develop'

jobs:
prepare:
Expand Down Expand Up @@ -88,6 +89,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Checking common scripts for errors"
run: |
set -eux
sudo apt-get install -y shellcheck
find install/common -type f -name "*.sh" | xargs shellcheck --exclude="$(awk '!/^#|^$/ {print $1}' tests/lint/sc_ignore | paste -sd ",")" --severity=warning | tee sc_output
awk '/\(warning\):/ {w++} /\(error\):/ {e++} END {if (w+e) printf "::warning ::ShellCheck detected %d warnings and %d errors\n", w+0, e+0}' sc_output
- name: Set product version
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci-oci-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ jobs:
matrix=$(echo '{
"include": [
{"execute": '${{ github.event.inputs.centos9s || true }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"},
{"execute": '${{ github.event.inputs.debian12 || true }}', "name": "Debian12", "os": "debian12", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2204 || true }}', "name": "Ubuntu22.04", "os": "ubuntu2204", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2404 || true }}', "name": "Ubuntu24.04", "os": "ubuntu-24.04", "distr": "bento"},
{"execute": '${{ github.event.inputs.fedora40 || true }}', "name": "Fedora40", "os": "fedora-40", "distr": "bento"},
{"execute": '${{ github.event.inputs.fedora41 || true }}', "name": "Fedora41", "os": "41-cloud-base", "distr": "fedora"}
]
}')
Expand Down

0 comments on commit 16959d1

Please sign in to comment.