Skip to content

Commit 0da8724

Browse files
authored
Merge branch 'master' into documentation
2 parents ddc64ed + fdecc2c commit 0da8724

22 files changed

+535
-126
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.gitattributes export-ignore
2+
.github export-ignore
3+
.gitignore export-ignore
4+
.travis.yml export-ignore
5+
CHANGELOG.md export-ignore
6+
CONTRIBUTING.md export-ignore
7+
Makefile export-ignore
8+
README.md export-ignore
9+
phpunit.xml export-ignore
10+
tests/ export-ignore

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
name: "🐛 Bug Report"
3+
description: Report a bug
4+
title: "(short issue description)"
5+
labels: [bug, needs-triage]
6+
assignees: []
7+
body:
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: Describe the bug
12+
description: What is the problem? A clear and concise description of the bug.
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: expected
17+
attributes:
18+
label: Expected Behavior
19+
description: |
20+
What did you expect to happen?
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: current
25+
attributes:
26+
label: Current Behavior
27+
description: |
28+
What actually happened?
29+
30+
Please include full errors, uncaught exceptions, stack traces, and relevant logs.
31+
If service responses are relevant, please include wire logs.
32+
validations:
33+
required: true
34+
- type: textarea
35+
id: reproduction
36+
attributes:
37+
label: Reproduction Steps
38+
description: |
39+
Provide a self-contained, concise snippet of code that can be used to reproduce the issue.
40+
For more complex issues provide a repo with the smallest sample that reproduces the bug.
41+
42+
Avoid including business logic or unrelated code, it makes diagnosis more difficult.
43+
The code sample should be an SSCCE. See http://sscce.org/ for details. In short, please provide a code sample that we can copy/paste, run and reproduce.
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: solution
48+
attributes:
49+
label: Possible Solution
50+
description: |
51+
Suggest a fix/reason for the bug
52+
validations:
53+
required: false
54+
- type: textarea
55+
id: context
56+
attributes:
57+
label: Additional Information/Context
58+
description: |
59+
Anything else that might be relevant for troubleshooting this bug. Providing context helps us come up with a solution that is most useful in the real world.
60+
validations:
61+
required: false
62+
- type: input
63+
id: sdk-version
64+
attributes:
65+
label: SDK version used
66+
validations:
67+
required: true
68+
- type: input
69+
id: environment
70+
attributes:
71+
label: Environment details (OS name and version, etc.)
72+
validations:
73+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
blank_issues_enabled: false
3+
contact_links:
4+
- name: 💬 General Question
5+
url: https://github.com/aws/aws-sdk-php-laravel/discussions/categories/q-a
6+
about: Please ask and answer questions as a discussion thread
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "📕 Documentation Issue"
3+
description: Report an issue in the API Reference documentation or Developer Guide
4+
title: "(short issue description)"
5+
labels: [documentation, needs-triage]
6+
assignees: []
7+
body:
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: Describe the issue
12+
description: A clear and concise description of the issue.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
id: links
18+
attributes:
19+
label: Links
20+
description: |
21+
Include links to affected documentation page(s).
22+
validations:
23+
required: true
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: 🚀 Feature Request
3+
description: Suggest an idea for this project
4+
title: "(short issue description)"
5+
labels: [feature-request, needs-triage]
6+
assignees: []
7+
body:
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: Describe the feature
12+
description: A clear and concise description of the feature you are proposing.
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: use-case
17+
attributes:
18+
label: Use Case
19+
description: |
20+
Why do you need this feature? For example: "I'm always frustrated when..."
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: solution
25+
attributes:
26+
label: Proposed Solution
27+
description: |
28+
Suggest how to implement the addition or change. Please include prototype/workaround/sketch/reference implementation.
29+
validations:
30+
required: false
31+
- type: textarea
32+
id: other
33+
attributes:
34+
label: Other Information
35+
description: |
36+
Any alternative solutions or features you considered, a more detailed explanation, stack traces, related issues, links for context, etc.
37+
validations:
38+
required: false
39+
- type: checkboxes
40+
id: ack
41+
attributes:
42+
label: Acknowledgements
43+
options:
44+
- label: I may be able to implement this feature request
45+
required: false
46+
- label: This feature might incur a breaking change
47+
required: false
48+
- type: input
49+
id: sdk-version
50+
attributes:
51+
label: SDK version used
52+
validations:
53+
required: true
54+
- type: input
55+
id: environment
56+
attributes:
57+
label: Environment details (OS name and version, etc.)
58+
validations:
59+
required: true

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/general_issue.md

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Closed Issue Message
2+
on:
3+
issues:
4+
types: [closed]
5+
jobs:
6+
auto_comment:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: aws-actions/closed-issue-message@v1
10+
with:
11+
# These inputs are both required
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
message: |
14+
### ⚠️COMMENT VISIBILITY WARNING⚠️
15+
Comments on closed issues are hard for our team to see.
16+
If you need more assistance, please either tag a team member or open a new issue that references this one.
17+
If you wish to keep having a conversation with other community members under this issue feel free to do so.

.github/workflows/stale_issues.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Close stale issues"
2+
3+
# Controls when the action will run.
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
cleanup:
10+
runs-on: ubuntu-latest
11+
name: Stale issue job
12+
steps:
13+
- uses: aws-actions/stale-issue-cleanup@v3
14+
with:
15+
# Setting messages to an empty string will cause the automation to skip
16+
# that category
17+
ancient-issue-message: We have noticed this issue has not recieved attention in 3 years. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.
18+
stale-issue-message: This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.
19+
20+
# These labels are required
21+
stale-issue-label: closing-soon
22+
exempt-issue-label: no-autoclose
23+
stale-pr-label: no-pr-activity
24+
exempt-pr-label: awaiting-approval
25+
response-requested-label: response-requested
26+
27+
# Don't set closed-for-staleness label to skip closing very old issues
28+
# regardless of label
29+
closed-for-staleness-label: closed-for-staleness
30+
31+
# Issue timing
32+
days-before-stale: 7
33+
days-before-close: 4
34+
days-before-ancient: 1095
35+
36+
# If you don't want to mark a issue as being ancient based on a
37+
# threshold of "upvotes", you can set this here. An "upvote" is
38+
# the total number of +1, heart, hooray, and rocket reactions
39+
# on an issue.
40+
minimum-upvotes-to-exempt: 10
41+
42+
repo-token: ${{ secrets.GITHUB_TOKEN }}
43+
loglevel: DEBUG
44+
# Set dry-run to true to not perform label or close actions.
45+
# dry-run: true

.github/workflows/tests.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: PHP Composer
2+
3+
#whenever master has a PR or is pushed to
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
run:
12+
runs-on: ubuntu-22.04
13+
strategy:
14+
matrix:
15+
include:
16+
- php-versions: '5.5'
17+
laravel-versions: '5.1.*'
18+
- php-versions: '5.6'
19+
laravel-versions: '5.1.*'
20+
- php-versions: '7.0'
21+
laravel-versions: '5.5.*'
22+
- php-versions: '7.1'
23+
laravel-versions: '^5.5'
24+
- php-versions: '7.2'
25+
laravel-versions: '^5.5'
26+
- php-versions: '7.2'
27+
laravel-versions: '^6.0'
28+
- php-versions: '7.2'
29+
laravel-versions: '^7.0'
30+
- php-versions: '7.3'
31+
laravel-versions: '^6.0'
32+
- php-versions: '7.3'
33+
laravel-versions: '^7.0'
34+
- php-versions: '7.3'
35+
laravel-versions: '^8.0'
36+
- php-versions: '7.4'
37+
laravel-versions: '^6.0'
38+
- php-versions: '7.4'
39+
laravel-versions: '^7.0'
40+
- php-versions: '7.4'
41+
laravel-versions: '^8.0'
42+
- php-versions: '8.0'
43+
laravel-versions: '^7.0'
44+
- php-versions: '8.0'
45+
laravel-versions: '^8.0'
46+
- php-versions: '8.0'
47+
laravel-versions: '^9.0'
48+
- php-versions: '8.1'
49+
laravel-versions: '^8.0'
50+
- php-versions: '8.1'
51+
laravel-versions: '^9.0'
52+
- php-versions: '8.1'
53+
laravel-versions: '^10.0'
54+
- php-versions: '8.2'
55+
laravel-versions: '^9.0'
56+
- php-versions: '8.2'
57+
laravel-versions: '^10.0'
58+
59+
#set the name for each job
60+
name: PHP ${{ matrix.php-versions }} with Laravel ${{ matrix.laravel-versions }}
61+
#set up environment variables used by unit tests
62+
env:
63+
AWS_ACCESS_KEY_ID: foo
64+
AWS_SECRET_ACCESS_KEY: bar
65+
AWS_CSM_ENABLED: false
66+
steps:
67+
#sets up the correct version of PHP with necessary config options
68+
- name: Setup PHP
69+
uses: shivammathur/setup-php@v2
70+
with:
71+
php-version: ${{ matrix.php-versions }}
72+
ini-values: memory_limit=4G, phar.readonly=false
73+
74+
#checkout the codebase from github
75+
- name: Checkout codebase
76+
uses: actions/checkout@v3
77+
78+
#require laravel
79+
- name: Require laravel
80+
run: composer require laravel/framework:${{ matrix.laravel-versions }} --no-interaction --prefer-dist --no-plugins
81+
82+
#run tests
83+
- name: Run test suite
84+
run: vendor/bin/phpunit
85+
86+
#remove laravel
87+
- name: Remove laravel
88+
run: |
89+
composer remove laravel/framework --no-plugins
90+
rm composer.lock
91+
92+
#require lumen
93+
- name: Require lumen
94+
if: ${{ matrix.laravel-versions != '^10.0' && (matrix.php-versions != '^8.0' && matrix.laravel-versions != '^7.0') }}
95+
run: composer require laravel/lumen-framework:${{ matrix.laravel-versions }} --no-interaction --prefer-dist --no-plugins
96+
97+
#run tests
98+
- name: Run test suite
99+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)