-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 933 Bytes
/
install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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