From aca3ec8a545905e46f000ee5d3ef26176364d477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 4 Mar 2024 07:45:49 +0100 Subject: [PATCH] update pipeline --- .editorconfig | 5 +- .gitattributes | 65 +++++++++++++++++--- .github/workflows/cleanup-caches.yml | 2 +- .github/workflows/continuous-integration.yml | 27 +++++++- 4 files changed, 83 insertions(+), 16 deletions(-) diff --git a/.editorconfig b/.editorconfig index 666700c..23af200 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,12 +13,9 @@ indent_style = space indent_size = 4 trim_trailing_whitespace = true -[*.{js,ts,cjs,cts,mjs,mts,json,json5,yml}] +[*.{js,ts,cjs,cts,mjs,mts,json,json5,yaml,yml}] indent_size = 2 -[composer.json] -indent_size = 4 - [*.md] indent_size = 2 trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index 46c69a3..c1a4fe4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,47 +1,89 @@ -# file-version: 2.0 +# Declare files that will always have LF line endings on checkout. + +# file-version: 3.0 -# text files * text=auto -*.markdown text eol=lf -*.md text eol=lf + +# Javascript & Typescript *.js text eol=lf *.ts text eol=lf *.cjs text eol=lf *.cts text eol=lf *.mjs text eol=lf *.mts text eol=lf + +# CSS & SCSS *.css text eol=lf *.scss text eol=lf + +# Json *.json text eol=lf *.json5 text eol=lf -*.lock text eol=lf -*.html text eol=lf -*.php text eol=lf + +# Markdown +*.markdown text eol=lf +*.md text eol=lf + +# Yaml *.yml text eol=lf *.yaml text eol=lf + +# other *.xml text eol=lf -*.dist text eol=lf +*.lock text eol=lf *.txt text eol=lf *.ini text eol=lf *.sh text eol=lf *.stub text eol=lf *.tmp text eol=lf +*.dist text eol=lf +*.lock text eol=lf +*.html text eol=lf +*.phtml text eol=lf +*.php text eol=lf -# binary files +# Denote all files that are truly binary and should not be modified. +*.gpg -text binary +*.gpg~ -text binary +*.asc -text binary +*.png -text binary +*.jpg -text binary +*.gif -text binary +*.pdf -text binary +*.ico -text binary +*.odt -text binary +*.eot -text binary +*.ttf -text binary +*.woff -text binary +*.woff2 -text binary +*.swf -text binary +*.mp4 -text binary +*.ogv -text binary +*.webm -text binary +*.exe -text binary *.zip -text binary # files/folders to ignore /.* export-ignore .github/CODEOWNERS export-ignore text eol=lf +.browserslistrc export-ignore text eol=lf .codeclimate.yml export-ignore text eol=lf .editorconfig export-ignore text eol=lf +.eslintignore export-ignore text eol=lf +.eslintrc.json export-ignore text eol=lf .gitattributes export-ignore text eol=lf .gitignore export-ignore text eol=lf +.jshintrc export-ignore text eol=lf .markdown-link-check.json export-ignore text eol=lf .markdownlint.yaml export-ignore text eol=lf .mega-linter.yml export-ignore text eol=lf +.noai export-ignore text eol=lf +.npmrc export-ignore text eol=lf .php-cs-fixer.php export-ignore text eol=lf .phplint.yml export-ignore text eol=lf +.prettierignore export-ignore text eol=lf +.prettierrc.json export-ignore text eol=lf +.stylelintrc.json export-ignore text eol=lf .yamllint.yml export-ignore text eol=lf codecov.yml export-ignore text eol=lf infection.json export-ignore text eol=lf @@ -51,8 +93,13 @@ phpmd.ruleset.xml export-ignore text eol=lf phpstan.neon export-ignore text eol=lf phpunit.xml export-ignore text eol=lf phpunit-integration.xml export-ignore text eol=lf +postcss.config.cjs export-ignore text eol=lf +postcss.config.json export-ignore text eol=lf psalm.xml export-ignore text eol=lf rector.php export-ignore text eol=lf +tsconfig.json export-ignore text eol=lf +tsconfig.node.json export-ignore text eol=lf +vite.config.ts export-ignore text eol=lf /cache export-ignore /examples export-ignore /resources export-ignore diff --git a/.github/workflows/cleanup-caches.yml b/.github/workflows/cleanup-caches.yml index f63f004..3872521 100644 --- a/.github/workflows/cleanup-caches.yml +++ b/.github/workflows/cleanup-caches.yml @@ -12,7 +12,7 @@ on: jobs: cleanup: - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-22.04" steps: - name: "Checkout" uses: "actions/checkout@v4" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 90cbfa5..65e7c0e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -69,7 +69,7 @@ jobs: matrix: operating-system: - - "ubuntu-20.04" + - "ubuntu-22.04" php-version: - "8.1" @@ -127,7 +127,7 @@ jobs: matrix: operating-system: - - "ubuntu-20.04" + - "ubuntu-22.04" php-version: - "8.1" @@ -192,6 +192,29 @@ jobs: coverageLocations: ".build/coverage/clover.xml:clover" debug: false + - name: "Upload coverage to Coveralls" + uses: "coverallsapp/github-action@v2" + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + flag-name: "php ${{ matrix.php-version }} on ${{ matrix.operating-system }}" + parallel: true + file: ".build/coverage/clover.xml" + format: "clover" + debug: false + + finish-code-coverage: + runs-on: "ubuntu-22.04" + + needs: "code-coverage" + + if: always() + + steps: + - name: "Coveralls Finished" + uses: "coverallsapp/github-action@v2" + with: + parallel-finished: true + # This is a meta job to avoid to have to constantly change the protection rules # whenever we touch the matrix. tests-status: