File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Continuous integration"
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ tags :
8+ - " *"
9+ pull_request :
10+ schedule :
11+ - cron : " 0 0 * * *"
12+ workflow_dispatch :
13+
14+ concurrency :
15+ group : " ${{ github.workflow }}-${{ github.ref }}"
16+ cancel-in-progress : true
17+
18+ jobs :
19+ generate-ci-matrix :
20+ name : " Generate CI matrix"
21+ uses : " glpi-project/plugin-ci-workflows/.github/workflows/generate-ci-matrix.yml@v1"
22+ with :
23+ glpi-version : " 10.0.x"
24+ ci :
25+ name : " GLPI ${{ matrix.glpi-version }} - php:${{ matrix.php-version }} - ${{ matrix.db-image }}"
26+ needs : " generate-ci-matrix"
27+ strategy :
28+ fail-fast : false
29+ matrix : ${{ fromJson(needs.generate-ci-matrix.outputs.matrix) }}
30+ uses : " glpi-project/plugin-ci-workflows/.github/workflows/continuous-integration.yml@v1"
31+ with :
32+ plugin-key : " sccm"
33+ glpi-version : " ${{ matrix.glpi-version }}"
34+ php-version : " ${{ matrix.php-version }}"
35+ db-image : " ${{ matrix.db-image }}"
36+ init-script : " ./.github/workflows/init-script.sh"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ sudo apt-get update -yq
4+
5+ PHP_VERSION=$( php -r " echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" )
6+
7+ sudo apt-get install -yq unixodbc-dev
8+
9+ if [[ " $PHP_VERSION " == " 7.4" ]]; then
10+ sudo pecl install sqlsrv-5.10.1
11+ elif [[ " $PHP_VERSION " == " 8.0" ]]; then
12+ sudo pecl install sqlsrv-5.11.0
13+ else
14+ sudo pecl install sqlsrv
15+ fi
16+
17+ echo " extension=sqlsrv.so" | sudo tee -a /usr/local/etc/php/php.ini
You can’t perform that action at this time.
0 commit comments