Skip to content

Commit

Permalink
adds a sage-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 21, 2023
1 parent 2190f06 commit f66efc0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sage-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Sage Install Tests
on:
pull_request:
branches:
- main
paths:
- '/private/scripts/**'
jobs:
linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
php-version: [7.4, 8.0, 8.1, 8.2]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Composer Dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run Sage Install Script
run: |
composer install-sage || exit_code=$?
if [[ -n "${exit_code}" ]]; then
echo "❌ Sage Install Script Failed with exit code ${exit_code}"
exit $exit_code
else
echo "✅ Sage Install Script passed!"
exit 0;
fi
shell: bash

0 comments on commit f66efc0

Please sign in to comment.