Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-xz committed Jan 17, 2024
2 parents 4acbc7f + 166e668 commit d495471
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PHP Composer

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### Hexlet tests and linter status:
[![Actions Status](https://github.com/vladimr-xz/php-project-48/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/vladimr-xz/php-project-48/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/f17e6104504a5a9ad2dd/maintainability)](https://codeclimate.com/github/vladimr-xz/php-project-48/maintainability)
[![PHP CI](https://github.com/vladimr-xz/php-project-48/actions/workflows/workflow.yml/badge.svg)](https://github.com/vladimr-xz/php-project-48/actions/workflows/workflow.yml)

[![asciicast](https://asciinema.org/a/b4yfaEEDFvw2dMW4SRe8K3jNB.svg)](https://asciinema.org/a/b4yfaEEDFvw2dMW4SRe8K3jNB)

0 comments on commit d495471

Please sign in to comment.