From 939deddfb522234ebcd52913568d792d65c21292 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 10:40:36 -0500 Subject: [PATCH 01/10] Test 8.1 as well --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9369988..9d673c3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: 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 ] From 39df284ccc90bfcdcfb121ebee8f1e6d966db9c1 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 10:49:35 -0500 Subject: [PATCH 02/10] StyleCI --> Pint --- .github/workflows/style.yml | 29 +++++++++++++++++++++++++++++ pint.json | 9 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/style.yml create mode 100644 pint.json diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000..e085e26 --- /dev/null +++ b/.github/workflows/style.yml @@ -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]" diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..bc9d1e7 --- /dev/null +++ b/pint.json @@ -0,0 +1,9 @@ +{ + "preset": "laravel", + "rules": { + "not_operator_with_successor_space": false, + "cast_spaces": false, + "heredoc_to_nowdoc": false, + "phpdoc_summary": false + } +} \ No newline at end of file From c5421803af2f100791437c6ecf50a36ee81fbf2d Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 10:53:26 -0500 Subject: [PATCH 03/10] Modify pint --- pint.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pint.json b/pint.json index bc9d1e7..7bda465 100644 --- a/pint.json +++ b/pint.json @@ -4,6 +4,9 @@ "not_operator_with_successor_space": false, "cast_spaces": false, "heredoc_to_nowdoc": false, - "phpdoc_summary": false + "phpdoc_summary": false, + "concat_space": { + "spacing": "one" + } } } \ No newline at end of file From 7bd6842a46e9e2c5af2de8b12da99ef6eb63c97b Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 11:04:15 -0500 Subject: [PATCH 04/10] Modify pint --- pint.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pint.json b/pint.json index 7bda465..e1d2ffe 100644 --- a/pint.json +++ b/pint.json @@ -7,6 +7,7 @@ "phpdoc_summary": false, "concat_space": { "spacing": "one" - } + }, + "trailing_comma_in_multiline": false } } \ No newline at end of file From e42ff9f397332fd63cc3e31964411911ecbff9da Mon Sep 17 00:00:00 2001 From: aarondfrancis Date: Mon, 25 Jul 2022 16:04:38 +0000 Subject: [PATCH 05/10] Fix code styling [ci skip] --- src/Architecture.php | 1 + src/Clients/LambdaClient.php | 2 ++ src/Region.php | 22 ++++++++++++++++++++++ src/Runtime.php | 18 ++++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/src/Architecture.php b/src/Architecture.php index 30a8a75..02082f2 100644 --- a/src/Architecture.php +++ b/src/Architecture.php @@ -5,5 +5,6 @@ abstract class Architecture { public const X86_64 = 'x86_64'; + public const ARM_64 = 'arm64'; } diff --git a/src/Clients/LambdaClient.php b/src/Clients/LambdaClient.php index 38a6e8b..20d7865 100644 --- a/src/Clients/LambdaClient.php +++ b/src/Clients/LambdaClient.php @@ -18,7 +18,9 @@ class LambdaClient extends BaseClient { const CREATED = 1; + const UPDATED = 2; + const NOOP = 3; public function __construct(array $args) diff --git a/src/Region.php b/src/Region.php index 17f2e78..76e1308 100644 --- a/src/Region.php +++ b/src/Region.php @@ -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() diff --git a/src/Runtime.php b/src/Runtime.php index 44d90ef..f7ab427 100644 --- a/src/Runtime.php +++ b/src/Runtime.php @@ -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'; } From b457c211b979c65a98b8846bedab4daba6eead9f Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 11:07:14 -0500 Subject: [PATCH 06/10] Skip CI is supported natively by GitHub --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d673c3..128f218 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,6 @@ on: jobs: test: runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'ci skip')" strategy: fail-fast: false matrix: From a0e0660d65fc842fe8585b85fda0d791ba60efd6 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 11:11:19 -0500 Subject: [PATCH 07/10] Laravel 7 does not support 8.1 --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 128f218..b1e4f06 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,9 @@ jobs: testbench: 7.* exclude: + - laravel: 7.* + php: 8.1 + # Laravel 8 requires PHP 7.3. - laravel: 8.* php: 7.2 From 15614385478162f7bff566c7fd07b3a5d119a9ff Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 11:14:37 -0500 Subject: [PATCH 08/10] Update PHPUnit dep --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ceb3e2e..69f078f 100644 --- a/composer.json +++ b/composer.json @@ -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": { From c0ec33584e778fef42f40315b66779afd89d09c6 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 12:42:32 -0500 Subject: [PATCH 09/10] Skip lowest for PHP 8.1 and Laravel 8 --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b1e4f06..9bf5582 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,6 +40,11 @@ jobs: - 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 From c3953b4e9e03b5c648f7c880436b690c5210e04a Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Mon, 25 Jul 2022 12:57:07 -0500 Subject: [PATCH 10/10] Drop StyleCI [ci skip] --- .styleci.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .styleci.yml diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 9a4d524..0000000 --- a/.styleci.yml +++ /dev/null @@ -1,11 +0,0 @@ -preset: laravel - -disabled: - - concat_without_spaces - - not_operator_with_successor_space - - cast_spaces - - trailing_comma_in_multiline_array - - heredoc_to_nowdoc - - phpdoc_summary - -risky: false \ No newline at end of file