File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ mkdir /tmp/s3-uploads-tests/tests
1010
1111docker 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 $@
1414docker kill s3-uploads-tests-minio > /dev/null
1515
1616echo " Running Psalm..."
You can’t perform that action at this time.
0 commit comments