Skip to content

Commit

Permalink
Update workflows as powershell is now default on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 24, 2019
1 parent 340ab0b commit 91d14c7
Show file tree
Hide file tree
Showing 15 changed files with 127 additions and 63 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
- name: Send Coverage
continue-on-error: true
timeout-minutes: 2
shell: pwsh
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }}

- name: Setup PHP with extensions and custom config
Expand All @@ -48,6 +47,6 @@ jobs:
run: php -m
- name: Testing ini values
run: |
php -r "echo \"post_max_size: \" . ini_get('post_max_size') . \"\n\";"
php -r "echo \"short_open_tag: \" . ini_get('short_open_tag') . \"\n\";"
php -r "echo \"date.timezone: \" . ini_get('date.timezone') . \"\n\";"
printf "post_max_size: %s\n" $(php -r "echo ini_get('post_max_size');")
printf "short_open_tag: %s\n" $(php -r "echo ini_get('short_open_tag');")
printf "date.timezone: %s\n" $(php -r "echo ini_get('date.timezone');")
3 changes: 1 addition & 2 deletions examples/codeigniter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
shell: pwsh
run: vendor/bin/phpunit --coverage-text
3 changes: 1 addition & 2 deletions examples/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ jobs:
- name: Clear Config
run: php artisan config:clear
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
shell: pwsh
run: vendor/bin/phpunit --coverage-text
3 changes: 1 addition & 2 deletions examples/lumen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ jobs:
- name: Prepare the application
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
shell: pwsh
run: vendor/bin/phpunit --coverage-text
3 changes: 1 addition & 2 deletions examples/slim-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
shell: pwsh
run: vendor/bin/phpunit --coverage-text
3 changes: 1 addition & 2 deletions examples/zend-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ jobs:
composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
composer require --dev phpunit/phpunit squizlabs/php_codesniffer zendframework/zend-test
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
shell: pwsh
run: vendor/bin/phpunit --coverage-text
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function run() {
}
else if (os_version == 'win32') {
yield build('win32.ps1', version, os_version);
yield exec_1.exec('powershell .\\' + version + 'win32.ps1 -version ' + version);
yield exec_1.exec('pwsh .\\' + version + 'win32.ps1 -version ' + version);
}
else if (os_version == 'linux') {
yield build('linux.sh', version, os_version);
Expand Down
33 changes: 33 additions & 0 deletions node_modules/@actions/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions node_modules/@actions/core/lib/core.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/@actions/core/lib/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/core.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions node_modules/@actions/core/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 35 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-php",
"version": "1.4.3",
"version": "1.4.4",
"private": false,
"description": "Setup php action",
"main": "lib/setup-php.js",
Expand Down
2 changes: 1 addition & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function run() {
await exec('sh ./' + version + 'darwin.sh ' + version);
} else if (os_version == 'win32') {
await build('win32.ps1', version, os_version);
await exec('powershell .\\' + version + 'win32.ps1 -version ' + version);
await exec('pwsh .\\' + version + 'win32.ps1 -version ' + version);
} else if (os_version == 'linux') {
await build('linux.sh', version, os_version);
await exec('./' + version + 'linux.sh ' + version);
Expand Down

0 comments on commit 91d14c7

Please sign in to comment.