Install #2214
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The workflow to install the package on different OS and PHP versions | |
name: Install | |
# Trigger the workflow on new releases | |
on: | |
release: | |
types: [ created ] | |
branches: [ main ] | |
jobs: | |
php-test: | |
# Run on the latest OS versions | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Define the OS and PHP versions to test | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
steps: | |
- name: "Install PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, simplexml | |
- name: "Display PHP and Composer version information" | |
run: php --version && composer --version | |
- name: "Initialize Composer" | |
run: composer init --no-interaction --stability=stable | |
- name: "Install dependencies" | |
run: composer require cixware/esewa-php-sdk |