diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml new file mode 100644 index 0000000..0fffbbe --- /dev/null +++ b/.github/workflows/analyse.yml @@ -0,0 +1,54 @@ +name: analyse + +on: + push: + pull_request: + +jobs: + analyse: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + os: + - "ubuntu-latest" + php: + - '8.0' + experimental: + - false + + name: PHP${{ matrix.php }} on ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo + coverage: none + + - name: Setup CI Authentication + run: | + composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} + + - name: Install Laravel Pint + run: | + composer require "laravel/pint:^1.1" --no-interaction --no-update + + - name: Install dependencies + uses: "ramsey/composer-install@v2" + with: + dependency-versions: "highest" + composer-options: "--prefer-dist --no-cache" + + - name: Installed dependencies + run: composer show -D + + - name: Execute Code Style Analysis + run: vendor/bin/pint --test + + - name: Execute Static Code Analysis + run: vendor/bin/phpstan analyse diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml new file mode 100644 index 0000000..4628c42 --- /dev/null +++ b/.github/workflows/audit.yaml @@ -0,0 +1,51 @@ +name: audits + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * 3' + +jobs: + audit-dependencies: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + os: + - "ubuntu-latest" + php: + - '8.0' + - 8.1 + - 8.2 + experimental: + - true + + name: PHP${{ matrix.php }} on ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo + coverage: none + + - name: Setup CI Authentication + run: | + composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} + + - name: Install dependencies + uses: "ramsey/composer-install@v2" + with: + dependency-versions: "highest" + composer-options: "--prefer-dist --prefer-stable --no-cache" + + - name: Installed dependencies + run: composer show -D + + - name: Audit dependencies + run: composer audit