Skip to content

Commit

Permalink
Merge pull request #628 from lucatume/v4
Browse files Browse the repository at this point in the history
v4
  • Loading branch information
lucatume authored Sep 10, 2023
2 parents d591a12 + 0c6a0d1 commit 0cb8c05
Show file tree
Hide file tree
Showing 2,877 changed files with 270,721 additions and 108,472 deletions.
40 changes: 20 additions & 20 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Exclude all build files
/.github export-ignore
/bin export-ignore
/config export-ignore
/containers export-ignore
/docs export-ignore
/tests export-ignore
/.env.testing export-ignore
/.gitattributes export-ignore
/.gitbook.yaml export-ignore
/.gitignore export-ignore
/codeception.dist.yml export-ignore
/composer.codecept-4.json export-ignore
/composer.lock export-ignore
/composer.codecept-4.lock export-ignore
/docker-compose.yml export-ignore
/dynamicReturnTypeMeta.json export-ignore
/Makefile export-ignore
/phpcs.xml export-ignore
/phpstan.neon.dist export-ignore
/.DS_Store export-ignore
/.cache export-ignore
/.git export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.idea export-ignore
/Makefile export-ignore
/bin export-ignore
/codeception.dist.yml export-ignore
/composer.lock export-ignore
/config export-ignore
/docker-compose.yml export-ignore
/docs export-ignore
/dynamicReturnTypeMeta.json export-ignore
/mkdocs.yml export-ignore
/tests export-ignore
/todo.txt export-ignore
/var export-ignore
/vendor export-ignore
5 changes: 0 additions & 5 deletions .gitbook.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: docs
on:
push:
branches:
- v4
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: sudo apt-get install pngquant
- run: pip install git+https://${MKDOCS_GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git pillow
- run: mkdocs gh-deploy --force
env:
MKDOCS_GH_TOKEN: ${{ secrets.MKDOCS_GH_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Spelling"

on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"

permissions:
contents: "read"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
typos_check:
name: "文A Typos check"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v3"
-
name: "Search for misspellings"
uses: "crate-ci/typos@master"
with:
config: ./config/typos.toml
41 changes: 0 additions & 41 deletions .github/workflows/static-analysis.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Static Analysis"

on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"

permissions:
contents: "read"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
static_analysis:
name: "Static Analysis"
runs-on: "ubuntu-22.04"
steps:
-
name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"
coverage: "none"
-
name: "Checkout repository"
uses: "actions/checkout@v3"
-
name: "Validate Composer configuration"
run: "composer validate --no-interaction --strict"
-
name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
-
name: "Check PSR-4 mapping"
run: "composer dump-autoload --no-interaction --optimize --strict-psr"
-
name: "Run PHPHStan"
run: "composer run stan"
-
name: "Run PHP Code Sniffer"
run: "composer run cs"
Loading

0 comments on commit 0cb8c05

Please sign in to comment.