Skip to content

Commit

Permalink
Merge pull request #377 from mimmi20/updates
Browse files Browse the repository at this point in the history
update pipeline
  • Loading branch information
mimmi20 authored Mar 3, 2024
2 parents a8933fd + 4f824dd commit 46b44ea
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
65 changes: 56 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
cleanup:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

matrix:
operating-system:
- "ubuntu-20.04"
- "ubuntu-22.04"

php-version:
- "8.1"
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

matrix:
operating-system:
- "ubuntu-20.04"
- "ubuntu-22.04"

php-version:
- "8.1"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 46b44ea

Please sign in to comment.