Skip to content

Commit

Permalink
Switch to Laminas’ CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Nov 7, 2024
1 parent 1845b1b commit b3213c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 40 deletions.
46 changes: 6 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
name: PHP / Tests
name: "Continuous Integration"

on: push
on:
pull_request:
push:

jobs:
phpunit:
name: "phpunit"
runs-on: "ubuntu-24.04"

strategy:
fail-fast: false
matrix:
phpVersion:
- "8.4"
- "8.3"
- "8.2"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.phpVersion }}"
tools: "cs2pr"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Install Tideways"
run: |
echo 'deb [signed-by=/usr/share/keyrings/tideways.gpg] https://packages.tideways.com/apt-packages-main any-version main' | sudo tee /etc/apt/sources.list.d/tideways.list > /dev/null
wget -qO - 'https://packages.tideways.com/key.gpg' | gpg --dearmor | sudo tee /usr/share/keyrings/tideways.gpg > /dev/null
sudo apt-get update
sudo apt-get install tideways-php
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"

- name: "Run PHPUnit"
run: "php vendor/bin/phpunit"

ci:
uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x
6 changes: 6 additions & 0 deletions .laminas-ci/pre-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

echo 'deb [signed-by=/usr/share/keyrings/tideways.gpg] https://packages.tideways.com/apt-packages-main any-version main' | sudo tee /etc/apt/sources.list.d/tideways.list > /dev/null
wget -qO - 'https://packages.tideways.com/key.gpg' | gpg --dearmor | sudo tee /usr/share/keyrings/tideways.gpg > /dev/null
sudo apt-get update
sudo apt-get install tideways-php

0 comments on commit b3213c7

Please sign in to comment.