From f66efc07e490a8a1f1c6fded68a5228918d39983 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Thu, 21 Sep 2023 15:16:36 -0600 Subject: [PATCH] adds a sage-test workflow --- .github/workflows/sage-test.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/sage-test.yml diff --git a/.github/workflows/sage-test.yml b/.github/workflows/sage-test.yml new file mode 100644 index 00000000..f387b439 --- /dev/null +++ b/.github/workflows/sage-test.yml @@ -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