Skip to content

ci: replace Travis with GitHub Actions workflow for PHP 8.1–8.5#9

Merged
DeepDiver1975 merged 1 commit into
mainfrom
ci/add-github-actions-workflow
Jun 30, 2026
Merged

ci: replace Travis with GitHub Actions workflow for PHP 8.1–8.5#9
DeepDiver1975 merged 1 commit into
mainfrom
ci/add-github-actions-workflow

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Member

Closes #8

This repo still carried a legacy .travis.yml. This PR replaces it with a GitHub Actions workflow that runs the PHPUnit suite across a matrix of PHP 8.1, 8.2, 8.3, 8.4 and 8.5.

Changes

  • Add .github/workflows/ci.yml — runs on push/PR to main:
    • composer validate --strict
    • composer install --prefer-dist --no-progress
    • vendor/bin/phpunit
  • Remove obsolete .travis.yml

OSPO policy compliance

  • Only GitHub-owned / Marketplace-verified actions are used:
    • actions/checkout
    • shivammathur/setup-php (already used across the ownCloud org, e.g. owncloud/core)
  • All actions pinned to full commit SHAs (not tags).

Verification

Ran locally on PHP 8.3: composer validate --strict passes and vendor/bin/phpunit completes OK (525 generated test stubs, all marked incomplete — no failures).

🤖 Generated with Claude Code

Closes #8

Adds a GitHub Actions CI workflow running PHPUnit across a matrix of
PHP 8.1 through 8.5 and removes the obsolete .travis.yml.

Actions are pinned to full commit SHAs per the OSPO policy and use only
GitHub-owned or Marketplace-verified actions (actions/checkout,
shivammathur/setup-php — the latter already in use across the ownCloud org).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975 DeepDiver1975 requested a review from phil-davis June 30, 2026 06:59

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm - all the unit tests are just "stubs" that are auto-generated and marked incomplete. So do we just "believe" that the auto-generated PHP code in this repo works?

@DeepDiver1975

Copy link
Copy Markdown
Member Author

worth a second issue/pr ....

@phil-davis

Copy link
Copy Markdown
Contributor

worth a second issue/pr ....

Issue #10

@DeepDiver1975 DeepDiver1975 merged commit 2378486 into main Jun 30, 2026
5 checks passed
@DeepDiver1975 DeepDiver1975 deleted the ci/add-github-actions-workflow branch June 30, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GitHub workflow CI

2 participants