Skip to content

Commit

Permalink
ci: add ci.yaml for github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Strobotti committed Apr 28, 2024
1 parent 4f3309a commit 04ddacc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:

jobs:
dependency-validation:
name: Dependency Validation

runs-on: ubuntu-latest
timeout-minutes: 5

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

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: "${{ runner.os }}-${{ hashFiles('**/composer.lock') }}"

- name: Install Composer
uses: php-actions/composer@v6

- name: Ensure that composer.json is valid
run: composer validate --no-ansi --strict composer.json

- name: Ensure that dependencies can be installed
run: composer install --no-ansi --dry-run
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.DS_Store
.phpunit.result.cache
composer.lock
composer.phar
vendor
coverage.xml
clover.xml
Expand Down

0 comments on commit 04ddacc

Please sign in to comment.