Skip to content

Commit ceea32d

Browse files
committed
Merge remote-tracking branch 'origin/dependabot/composer/guzzlehttp/guzzle-7.2.0' into dependabot/composer/guzzlehttp/guzzle-7.2.0
# Conflicts: # lambda/http.php
2 parents 6689872 + 209494f commit ceea32d

File tree

6 files changed

+81
-7
lines changed

6 files changed

+81
-7
lines changed

.github/workflows/check.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Code Check
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
run:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
php: ['7.4']
18+
19+
name: PHP ${{ matrix.php }} Test on ${{ matrix.os }}
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
tools: composer
29+
30+
- name: Validate composer.json and composer.lock
31+
run: composer validate
32+
33+
- name: Get Composer Cache Directory
34+
id: composer-cache
35+
run: |
36+
echo "::set-output name=dir::$(composer config cache-files-dir)"
37+
38+
- name: Cache composer dependencies
39+
uses: actions/cache@v2
40+
with:
41+
path: ${{ steps.composer-cache.outputs.dir }}
42+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
43+
restore-keys: |
44+
${{ runner.os }}-composer-
45+
46+
- name: Install dependencies
47+
run: composer install --prefer-dist --no-progress
48+
49+
- name: Code check
50+
run: composer check

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ ps:
1212
$(DOCKER_COMPOSE) ps
1313
.PHONY: ps
1414

15+
logs:
16+
$(DOCKER_COMPOSE) logs -f
17+
.PHONY: logs
18+
1519
# DEVELOPMENT
1620
cli:
1721
$(RUN) /bin/bash

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Skeleton to kick off projects using AWS Lambda functions with PHP. Because AWS Lambda does not natively support PHP, the Bref Framework is used which provides a layer to execute PHP code on AWS Lambda.
44

5+
![CI Status](https://github.com/svnldwg/lambda-php-skeleton/workflows/Code%20Check/badge.svg)
6+
![GitHub last commit](https://img.shields.io/github/last-commit/svnldwg/lambda-php-skeleton)
7+
![PHPStan](https://img.shields.io/badge/PHPStan-Level%208-brightgreen.svg?style=flat)
8+
59
## Getting Started
610

711
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "svnldwg/lambda-php-skeleton",
3+
"description": "Skeleton project to quickly get started with running PHP on AWS Lambda",
4+
"license": "MIT",
35
"type": "project",
46
"require": {
57
"php": "^7.4",
@@ -18,5 +20,13 @@
1820
"psr-4": {
1921
"LambdaPhpSkeleton\\": "src/"
2022
}
23+
},
24+
"scripts": {
25+
"check": [
26+
"@cs-check",
27+
"@phpstan"
28+
],
29+
"cs-check": "php-cs-fixer fix --config=dev/php-cs-fixer.php_cs --dry-run --diff",
30+
"phpstan": "phpstan analyse -c dev/phpstan.neon --no-progress"
2131
}
2232
}

composer.lock

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 7
2+
level: max
33
inferPrivatePropertyTypeFromConstructor: true
44
checkMissingIterableValueType: true
55
paths:

0 commit comments

Comments
 (0)