Skip to content

Commit 2f0b197

Browse files
authored
Merge 560b12c into e68ee35
2 parents e68ee35 + 560b12c commit 2f0b197

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, v3-branch ]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: docker run --rm -v $PWD:/code --entrypoint='' humanmade/plugin-tester composer install
17+
18+
- name: Run tests
19+
run: ./tests/run-tests.sh --coverage-clover=coverage.xml
20+
21+
- name: Upload coverage to Codecov
22+
run: bash <(curl -s https://codecov.io/bash)
23+
env:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdir /tmp/s3-uploads-tests/tests
1010

1111
docker run --rm --name s3-uploads-tests-minio -d --rm -p 9000:9000 -e MINIO_ACCESS_KEY=AWSACCESSKEY -e MINIO_SECRET_KEY=AWSSECRETKEY -v /tmp/s3-uploads-tests:/data minio/minio server /data > /dev/null
1212

13-
docker run --rm -e S3_UPLOADS_BUCKET=tests -e S3_UPLOADS_KEY=AWSACCESSKEY -e S3_UPLOADS_SECRET=AWSSECRETKEY -e S3_UPLOADS_REGION=us-east-1 -v $PWD:/code humanmade/plugin-tester $@
13+
docker run --rm -e AWS_SUPPRESS_PHP_DEPRECATION_WARNING=1 -e S3_UPLOADS_BUCKET=tests -e S3_UPLOADS_KEY=AWSACCESSKEY -e S3_UPLOADS_SECRET=AWSSECRETKEY -e S3_UPLOADS_REGION=us-east-1 -v $PWD:/code humanmade/plugin-tester $@
1414
docker kill s3-uploads-tests-minio > /dev/null
1515

1616
echo "Running Psalm..."

0 commit comments

Comments
 (0)