Upgrade shfmt from 3.9.0 to 3.10.0 (#1065)
parent
5249e73d85
commit
2a68a3b764
|
@ -4,13 +4,16 @@ on:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
check_syntax_data:
|
check_syntax_data:
|
||||||
name: Check data syntax
|
name: Check data syntax
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Check order supported extensions list
|
-
|
||||||
|
name: Check order supported extensions list
|
||||||
run: |
|
run: |
|
||||||
sort -o data/supported-extensions.sorted data/supported-extensions
|
sort -o data/supported-extensions.sorted data/supported-extensions
|
||||||
if ! DIFF="$(diff -u data/supported-extensions data/supported-extensions.sorted)"; then
|
if ! DIFF="$(diff -u data/supported-extensions data/supported-extensions.sorted)"; then
|
||||||
|
@ -24,36 +27,47 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm data/special-requirements.sorted
|
rm data/special-requirements.sorted
|
||||||
|
|
||||||
check_syntax_shell:
|
check_syntax_shell:
|
||||||
name: Check shell coding style
|
name: Check shell coding style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
-
|
||||||
|
name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ">=1.22.6"
|
go-version: ">=1.22.6"
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install shfmt
|
-
|
||||||
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.9.0
|
name: Install shfmt
|
||||||
- name: Checkout
|
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.10.0
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Check coding style
|
-
|
||||||
|
name: Check coding style
|
||||||
run: ./scripts/invoke-shfmt check
|
run: ./scripts/invoke-shfmt check
|
||||||
|
|
||||||
check_syntax_php:
|
check_syntax_php:
|
||||||
name: Check PHP coding style
|
name: Check PHP coding style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install PHP
|
-
|
||||||
|
name: Install PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "7.4"
|
php-version: "7.4"
|
||||||
tools: composer
|
tools: composer
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install Composer dependencies
|
-
|
||||||
|
name: Install Composer dependencies
|
||||||
run: composer install --no-progress --classmap-authoritative
|
run: composer install --no-progress --classmap-authoritative
|
||||||
- name: Check coding style
|
-
|
||||||
|
name: Check coding style
|
||||||
run: composer run-script lint -- --dry-run --diff
|
run: composer run-script lint -- --dry-run --diff
|
||||||
|
|
||||||
test_extensions:
|
test_extensions:
|
||||||
needs:
|
needs:
|
||||||
- check_syntax_data
|
- check_syntax_data
|
||||||
|
@ -86,12 +100,15 @@ jobs:
|
||||||
env:
|
env:
|
||||||
IPETEST_DOCKER_DISTRO: ${{ matrix.distro }}
|
IPETEST_DOCKER_DISTRO: ${{ matrix.distro }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Test extensions
|
-
|
||||||
|
name: Test extensions
|
||||||
run: ./scripts/ci-test-extensions from-commits "${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
|
run: ./scripts/ci-test-extensions from-commits "${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
|
||||||
|
|
||||||
test_restoring_packages:
|
test_restoring_packages:
|
||||||
name: Test restoring packages
|
name: Test restoring packages
|
||||||
needs:
|
needs:
|
||||||
|
@ -100,9 +117,12 @@ jobs:
|
||||||
- check_syntax_php
|
- check_syntax_php
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: docker run --rm --volume "$(pwd):/app" --workdir /app php:8.2-bullseye ./scripts/test-restore-apt
|
-
|
||||||
|
run: docker run --rm --volume "$(pwd):/app" --workdir /app php:8.2-bullseye ./scripts/test-restore-apt
|
||||||
|
|
||||||
test_custom_version:
|
test_custom_version:
|
||||||
name: Test installing specific versions
|
name: Test installing specific versions
|
||||||
needs:
|
needs:
|
||||||
|
@ -120,9 +140,12 @@ jobs:
|
||||||
- ^2.8
|
- ^2.8
|
||||||
- ^2.8@stable
|
- ^2.8@stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: docker run --rm --volume "$(pwd):/app" --workdir /app php:7.4-alpine ./scripts/test-installversion "${{ matrix.xdebug_version }}"
|
-
|
||||||
|
run: docker run --rm --volume "$(pwd):/app" --workdir /app php:7.4-alpine ./scripts/test-installversion "${{ matrix.xdebug_version }}"
|
||||||
|
|
||||||
test_composer:
|
test_composer:
|
||||||
name: Test installing composer
|
name: Test installing composer
|
||||||
needs:
|
needs:
|
||||||
|
@ -137,10 +160,12 @@ jobs:
|
||||||
- '1'
|
- '1'
|
||||||
- '2.0.1'
|
- '2.0.1'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: |
|
-
|
||||||
docker run --rm --volume "$(pwd):/app" --workdir /app php:7.4-alpine ./scripts/test-installcomposer "${{ matrix.composer_version }}"
|
run: docker run --rm --volume "$(pwd):/app" --workdir /app php:7.4-alpine ./scripts/test-installcomposer "${{ matrix.composer_version }}"
|
||||||
|
|
||||||
test_marking_packages:
|
test_marking_packages:
|
||||||
name: Test marking pre-installed packages
|
name: Test marking pre-installed packages
|
||||||
needs:
|
needs:
|
||||||
|
@ -154,9 +179,12 @@ jobs:
|
||||||
- alpine
|
- alpine
|
||||||
- buster
|
- buster
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: docker run --rm --volume "$(pwd):/app" --workdir /app "php:7.4-${{ matrix.distro }}" "./scripts/ci-markused-${{ matrix.distro }}"
|
-
|
||||||
|
run: docker run --rm --volume "$(pwd):/app" --workdir /app "php:7.4-${{ matrix.distro }}" "./scripts/ci-markused-${{ matrix.distro }}"
|
||||||
|
|
||||||
test_instantclient_basic:
|
test_instantclient_basic:
|
||||||
name: Test using Oracle Instant Client Basic
|
name: Test using Oracle Instant Client Basic
|
||||||
needs:
|
needs:
|
||||||
|
@ -166,9 +194,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: php:8.1-cli-alpine
|
container: php:8.1-cli-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: IPE_INSTANTCLIENT_BASIC=1 ./install-php-extensions oci8 pdo_oci
|
-
|
||||||
|
run: IPE_INSTANTCLIENT_BASIC=1 ./install-php-extensions oci8 pdo_oci
|
||||||
|
|
||||||
test_install_fromsource:
|
test_install_fromsource:
|
||||||
name: Test installing from source
|
name: Test installing from source
|
||||||
needs:
|
needs:
|
||||||
|
@ -194,9 +225,12 @@ jobs:
|
||||||
container: php:7.4-cli-alpine
|
container: php:7.4-cli-alpine
|
||||||
source: php-memcached-dev/php-memcached@v3.2.0RC2
|
source: php-memcached-dev/php-memcached@v3.2.0RC2
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: ./install-php-extensions ${{ matrix.source }}
|
-
|
||||||
|
run: ./install-php-extensions ${{ matrix.source }}
|
||||||
|
|
||||||
test_upgrading_icu_data_en:
|
test_upgrading_icu_data_en:
|
||||||
name: Test that icu-data-en can be upgraded
|
name: Test that icu-data-en can be upgraded
|
||||||
needs:
|
needs:
|
||||||
|
@ -205,6 +239,8 @@ jobs:
|
||||||
- check_syntax_php
|
- check_syntax_php
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: docker run --rm --volume "$(pwd):/app" --workdir /app php:8.2-cli-alpine ./scripts/test-icu-data-en-upgradable
|
-
|
||||||
|
run: docker run --rm --volume "$(pwd):/app" --workdir /app php:8.2-cli-alpine ./scripts/test-icu-data-en-upgradable
|
||||||
|
|
|
@ -11,7 +11,7 @@ echo '# Linting shell scripts'
|
||||||
if ! docker --version >/dev/null 2>/dev/null; then
|
if ! docker --version >/dev/null 2>/dev/null; then
|
||||||
echo 'Docker is not installed, or it is not running.' >&2
|
echo 'Docker is not installed, or it is not running.' >&2
|
||||||
rc=1
|
rc=1
|
||||||
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.9.0-alpine fix; then
|
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.10.0-alpine fix; then
|
||||||
echo 'ERROR!' >&2
|
echo 'ERROR!' >&2
|
||||||
rc=1
|
rc=1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -16,7 +16,7 @@ if errorlevel 1 (
|
||||||
echo Docker is not installed, or it's not running >&2
|
echo Docker is not installed, or it's not running >&2
|
||||||
set rc=1
|
set rc=1
|
||||||
) else (
|
) else (
|
||||||
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.9.0-alpine fix
|
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.10.0-alpine fix
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ERROR! >&2
|
echo ERROR! >&2
|
||||||
set rc=1
|
set rc=1
|
||||||
|
|
Loading…
Reference in New Issue