chore(lint): linting, fixed editorconfig

This commit is contained in:
2023-09-06 08:21:38 +03:00
parent 2e43d12ef0
commit 4ee109b6dc
11 changed files with 22 additions and 28 deletions

View File

@@ -40,5 +40,5 @@ tab_width = 4
[{*.tf,*.tfvars}] [{*.tf,*.tfvars}]
tab_width = 4 tab_width = 4
[*.md,.github/workflows/*.yml] [{*.md,.github/workflows/*.yml}]
max_line_length = 300 max_line_length = 300

View File

@@ -14,8 +14,8 @@ jobs:
strategy: strategy:
matrix: matrix:
operating-system: ['ubuntu-latest'] operating-system: [ "ubuntu-latest" ]
php-versions: ['8.0', '8.1', '8.2'] php: [ "8.0", "8.1", "8.2" ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -25,13 +25,13 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: vendor path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-php-${{ matrix.php-versions }}- ${{ runner.os }}-php-${{ matrix.php }}-
${{ runner.os }}-php- ${{ runner.os }}-php-
- name: Composer (PHP ${{ matrix.php-versions }}) - name: Composer (PHP ${{ matrix.php }})
uses: php-actions/composer@v6 uses: php-actions/composer@v6
with: with:
php_version: ${{ matrix.php-versions }} php_version: ${{ matrix.php }}
args: --no-progress --prefer-dist --optimize-autoloader args: --no-progress --prefer-dist --optimize-autoloader

View File

@@ -10,7 +10,7 @@
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: "Dependency Review" name: "Dependency Review"
on: [pull_request] on: [ pull_request ]
permissions: permissions:
contents: read contents: read

View File

@@ -3,13 +3,12 @@ name: Laravel Setup and Composer test
on: on:
push: push:
branches: [main] branches: [ main ]
pull_request: pull_request:
branches: [main] branches: [ main ]
jobs: jobs:
laravel-tests: laravel-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -22,9 +22,4 @@ jobs:
- name: Compress Images - name: Compress Images
uses: calibreapp/image-actions@main uses: calibreapp/image-actions@main
with: with:
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is
# currently running the action. By default, the action cant update Pull Requests initiated from
# forked repositories.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and
# https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
githubToken: ${{ secrets.GITHUB_TOKEN }} githubToken: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -19,10 +19,10 @@ env:
############################# #############################
on: on:
push: push:
branches-ignore: [master, main] branches-ignore: [ master, main ]
# Remove the line above to run when pushing to master # Remove the line above to run when pushing to master
pull_request: pull_request:
branches: [master, main] branches: [ master, main ]
############### ###############
# Set the Job # # Set the Job #

View File

@@ -1,10 +1,10 @@
--- ---
name: Release Drafter name: Release Drafter
# yamllint disable-line rule:truthy
on: on:
workflow_call: workflow_call:
jobs: jobs:
update_release_draft: update_release_draft:
name: ✏️ Draft release name: ✏️ Draft release

View File

@@ -1,7 +1,7 @@
--- ---
name: Reviewdog Linters name: Reviewdog Linters
on: [push] on: [ push ]
jobs: jobs:
linters: linters:
@@ -37,7 +37,6 @@ jobs:
--list --list
--write --write
--diff --diff
--simplify
--language-dialect bash --language-dialect bash
--indent 2 --indent 2
--binary-next-line --binary-next-line

View File

@@ -1,7 +1,6 @@
--- ---
name: Stale name: Stale
# yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "0 8 * * *" - cron: "0 8 * * *"

View File

@@ -10,6 +10,7 @@ on:
- .github/workflows/sync-labels-to-own-projects.yml - .github/workflows/sync-labels-to-own-projects.yml
workflow_dispatch: workflow_dispatch:
jobs: jobs:
sync-labels: sync-labels:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -32,11 +33,12 @@ jobs:
| sed 's|\"||' | sed 's|\"||'
)" )"
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) EOF="$(dd if=/dev/urandom bs=15 count=1 status=none | base64)"
echo "REPOS<<$EOF" >> "$GITHUB_ENV" {
echo $REPOS >> "$GITHUB_ENV" echo "REPOS<<$EOF"
echo "$EOF" >> "$GITHUB_ENV" echo "$REPOS"
echo "$EOF"
} >> "$GITHUB_ENV"
- uses: micnncim/action-label-syncer@v1 - uses: micnncim/action-label-syncer@v1
with: with:
prune: true prune: true

View File

@@ -1,7 +1,6 @@
--- ---
name: Sync labels name: Sync labels
# yamllint disable-line rule:truthy
on: on:
push: push:
branches: branches:
@@ -13,6 +12,7 @@ on:
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
labels: labels:
name: ♻️ Sync labels name: ♻️ Sync labels