Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Commit f2a7686

Browse files
committed
Inital setup
1 parent 2bdcfb3 commit f2a7686

7 files changed

Lines changed: 396 additions & 0 deletions

File tree

.dependabot/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 1
2+
update_configs:
3+
- package_manager: "php:composer"
4+
directory: "/"
5+
update_schedule: "weekly"
6+
automerged_updates:
7+
- match:
8+
dependency_type: "development"
9+
update_type: "all"
10+
- match:
11+
dependency_type: "production"
12+
update_type: "all"

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branch:
4+
- master
5+
release:
6+
name: ci
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Build
13+
uses: elgohr/Publish-Docker-Github-Action@master
14+
with:
15+
name: phpdoc/phpstan-ga
16+
username: ${{ secrets.DOCKER_USERNAME }}
17+
password: ${{ secrets.DOCKER_PASSWORD }}
18+
19+
- name: self-run
20+
uses: ./
21+
with:
22+
args: "-i"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM php:7.4-cli-alpine
2+
3+
ENV PATH /composer/vendor/bin:$PATH
4+
ENV PHP_CONF_DIR=/usr/local/etc/php/conf.d
5+
6+
RUN apk --update --progress --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.9/community add \
7+
php7-intl \
8+
php7-xsl \
9+
&& rm -rf /var/cache/apk/* /var/tmp/* /tmp/* \
10+
&& echo "memory_limit=-1" > $PHP_CONF_DIR/99_memory-limit.ini
11+
12+
ADD vendor /composer/vendor
13+
14+
ENTRYPOINT ["phpstan"]

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "phpstan-action"
2+
description: "phpDocumentor phpstan action"
3+
branding:
4+
color: green
5+
icon: crosshair
6+
runs:
7+
using: docker
8+
image: docker://phpdoc/phpstan-ga:latest

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "phpdocumentor/phpstan-ga",
3+
"description": "phpstan composed package for phpdocumentor",
4+
"type": "metapackage",
5+
"license": "MIT",
6+
"require": {
7+
"phpstan/phpstan": "0.12.3",
8+
"phpstan/phpstan-phpunit": "0.12.3",
9+
"phpstan/phpstan-mockery": "^0.12.3",
10+
"phpstan/phpstan-webmozart-assert": "0.12.1",
11+
"phpstan/phpstan-php-parser": "^0.12.1"
12+
}
13+
}

0 commit comments

Comments
 (0)