Skip to content

Commit

Permalink
Update the installation workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
remotemerge committed Dec 25, 2023
1 parent 985162d commit 7ffb85f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# The workflow to install the package on different OS and PHP versions
name: Install

# run on
# Trigger the workflow on new releases
on:
release:
types: [created]
branches: [main]
types: [ created ]
branches: [ main ]

jobs:
Test:
# Current OS
php-test:
# Run on the latest OS versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
# OS list
os: [ubuntu-latest]
# Supported PHP versions
php: ['7.4', '8.0', '8.1', '8.2']
# 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 version information"
- name: "Display PHP and Composer version information"
run: php --version && composer --version

- name: "Initialize composer"
- name: "Initialize Composer"
run: composer init --no-interaction --stability=stable

- name: "Install dependencies"
Expand Down

0 comments on commit 7ffb85f

Please sign in to comment.