Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Updates #77

Merged
merged 10 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Fix Code Styling

on: [ push ]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: json, dom, curl, libxml, mbstring
coverage: none

- name: Install Pint
run: composer global require laravel/pint

- name: Run Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Fix code styling [ci skip]"
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ on:
jobs:
test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
fail-fast: false
matrix:
php: [ 7.2, 7.3, 7.4, 8.0 ]
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
laravel: [ 7.*, 8.*, 9.* ]
guzzle: [ 6.*, 7.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
Expand All @@ -34,10 +33,18 @@ jobs:
testbench: 7.*

exclude:
- laravel: 7.*
php: 8.1

# Laravel 8 requires PHP 7.3.
- laravel: 8.*
php: 7.2

# PHP 8.1 requires Laravel 8.65, so skip lowest
- laravel: 8.*
php: 8.1
dependency-version: prefer-lowest

# Laravel 9 requires PHP 8.0
- laravel: 9.*
php: 7.2
Expand Down
11 changes: 0 additions & 11 deletions .styleci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require-dev": {
"orchestra/testbench": "^5|^6|^7",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8|^9"
"phpunit/phpunit": ">=8.5.23|^9"
},
"autoload": {
"psr-4": {
Expand Down
13 changes: 13 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"preset": "laravel",
"rules": {
"not_operator_with_successor_space": false,
"cast_spaces": false,
"heredoc_to_nowdoc": false,
"phpdoc_summary": false,
"concat_space": {
"spacing": "one"
},
"trailing_comma_in_multiline": false
}
}
1 change: 1 addition & 0 deletions src/Architecture.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
abstract class Architecture
{
public const X86_64 = 'x86_64';

public const ARM_64 = 'arm64';
}
2 changes: 2 additions & 0 deletions src/Clients/LambdaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
class LambdaClient extends BaseClient
{
const CREATED = 1;

const UPDATED = 2;

const NOOP = 3;

public function __construct(array $args)
Expand Down
22 changes: 22 additions & 0 deletions src/Region.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,49 @@
class Region
{
const US_EAST_1 = 'us-east-1'; // US East (N. Virginia)

const US_EAST_2 = 'us-east-2'; // US East (Ohio)

const US_WEST_1 = 'us-west-1'; // US West (N. California)

const US_WEST_2 = 'us-west-2'; // US West (Oregon)

const CA_CENTRAL_1 = 'ca-central-1'; // Canada (Central)

const EU_CENTRAL_1 = 'eu-central-1'; // EU (Frankfurt)

const EU_WEST_1 = 'eu-west-1'; // EU (Ireland)

const EU_WEST_2 = 'eu-west-2'; // EU (London)

const EU_WEST_3 = 'eu-west-3'; // EU (Paris)

const EU_NORTH_1 = 'eu-north-1'; // EU (Stockholm)

const EU_SOUTH_1 = 'eu-south-1'; // EU (Milan)

const AP_EAST_1 = 'ap-east-1'; // Asia Pacific (Hong Kong)

const AP_SOUTH_1 = 'ap-south-1'; // Asia Pacific (Mumbai)

const AP_NORTHEAST_3 = 'ap-northeast-3'; // Asia Pacific (Osaka)

const AP_NORTHEAST_2 = 'ap-northeast-2'; // Asia Pacific (Seoul)

const AP_SOUTHEAST_1 = 'ap-southeast-1'; // Asia Pacific (Singapore)

const AP_SOUTHEAST_2 = 'ap-southeast-2'; // Asia Pacific (Sydney)

const AP_NORTHEAST_1 = 'ap-northeast-1'; // Asia Pacific (Tokyo)

const AF_SOUTH_1 = 'af-south-1'; // Africa (Cape Town)

const CN_NORTH_1 = 'cn-north-1'; // China (Beijing)

const CN_NORTHWEST_1 = 'cn-northwest-1'; // China (Ningxia)

const ME_SOUTH_1 = 'me-south-1'; // Middle East (Bahrain)

const SA_EAST_1 = 'sa-east-1'; // South America (São Paulo)

public static function all()
Expand Down
18 changes: 18 additions & 0 deletions src/Runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,40 @@
abstract class Runtime
{
public const NODEJS_16 = 'nodejs16.x';

public const NODEJS_14 = 'nodejs14.x';

public const NODEJS_12 = 'nodejs12.x';

public const NODEJS_10 = 'nodejs10.x';

public const PYTHON_39 = 'python3.9';

public const PYTHON_38 = 'python3.8';

public const PYTHON_37 = 'python3.7';

public const PYTHON_36 = 'python3.6';

public const PYTHON_27 = 'python2.7';

public const RUBY_27 = 'ruby2.7';

public const RUBY_25 = 'ruby2.5';

public const JAVA_11 = 'java11';

public const JAVA_8_LINUX2 = 'java8.al2';

public const JAVA_8 = 'java8';

public const GO_1X = 'go1.x';

public const DOT_NET_6 = 'dotnet6';

public const DOT_NET_31 = 'dotnetcore3.1';

public const DOT_NET_21 = 'dotnetcore2.1';

public const PROVIDED_AL2 = 'provided.al2';
}